Subject: Re: fn:document-uri in Saxon and XMLSpy
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 6 Jan 2006 16:49:46 GMT
|
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
________________________________________________________________________
|