[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: fn:document-uri in Saxon and XMLSpy
From: "Jesper Tverskov" <jesper@xxxxxxxxxxx>
Date: Fri, 6 Jan 2006 21:24:50 +0100
In order to take the filename out of the "path/filname", David suggested:
tokenize(document-uri(.), "[\\/]")[last()]
to catch both / and \

The set of functions working in both XmlSpy and in Saxon looks like this:
tokenize(document-uri(.), "(\\|/)")[last()]

Jesper

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member