Re: Name of executing script

Chris Wallace <[email protected]>
Newsgroups gmane.text.xml.exist
Message-ID <CAH0WD3qqAChg=jZf+bNTtNvOikL6rpZ3RTYu2=fYhcgKo7tqkg@mail.gmail.com>
Here is one way to get it:

tokenize(request:get-effective-uri(),"/")[last()]

By way of context, when executing a response:redirect-to() , the URI needs
the script name even if the redirect is to the current script. Scripts are
more maintainable when that name doesn't have to be hard-coded.



On Fri, May 19, 2023 at 8:07 AM Chris Wallace <[email protected]> wrote:

> Help - I've forgotten how to get the name of the executing script.
>
> Chris
>

_______________________________________________
Exist-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/exist-open
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.