xsl-list
[Top] [All Lists]

RE: fn:document-uri in Saxon and XMLSpy

2006-01-06 09:42:20
A valid URI can never contain a backslash. It looks as if XML Spy is
returning the Windows filename.

Michael Kay
http://www.saxonica.com/

-----Original Message-----
From: Jesper Tverskov [mailto:jesper(_at_)tverskov(_dot_)dk] 
Sent: 06 January 2006 16:32
To: Xsl-List(_at_)Lists(_dot_) Mulberrytech. Com
Subject: [xsl] fn:document-uri in Saxon and XMLSpy

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




--~------------------------------------------------------------------
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>
--~--





--~------------------------------------------------------------------
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>