xsl-list
[Top] [All Lists]

Re: fn:document-uri in Saxon and XMLSpy

2006-01-06 09:49:46

incidentally there is no need to go to the expence of reversing the
sequence


 subsequence(reverse(tokenize(document-uri(.), "/")), 1, 1)

you just want the last item so:

tokenize(document-uri(.), "/")[last()]

or
tokenize(document-uri(.), "[\\/]")[last()]

to catch both / and \

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>