Subject: fn:document-uri in Saxon and XMLSpy
From: "Jesper Tverskov" <jesper@xxxxxxxxxxx>
Date: Fri, 6 Jan 2006 17:31:30 +0100
|
Hi
In XPath 2.O fn:document-uri returns full path and filename of the input XML
document or context node. In order just to get the filename returned I use
this set of functions in XSLT processor SAXON 8B in oXygen:
subsequence(reverse(tokenize(document-uri(.), "/")), 1, 1)
But I need to use this set of functions in XMLSpy's 2006 XSLT processor:
subsequence(reverse(tokenize(document-uri(.), "\\")), 1, 1)
Who is doing it right and why?
Wouldn't it be better for both processors to make both "/" and "\\" work?
Is there a better set of functions to do the samt thing?
Best regards,
Jesper Tverskov
|