xsl-list
[Top] [All Lists]

Re: fn:document-uri in Saxon and XMLSpy

2006-01-06 10:01:31
"Jesper" == Jesper Tverskov <jesper(_at_)tverskov(_dot_)dk> writes:

    Jesper> Hi In XPath 2.O fn:document-uri returns full path and
    Jesper> filename of the input XML document or context node.

No it doesn't, it returns the absolute URI of the document node, if it
is passed a document node as it's argument.

Assuming the result is a file scheme URI, then how to get a file name
from this is a little problematic - it depends somewhat upon the
implementation - the file scheme is not highly specified in this respect.

    Jesper> Wouldn't it be better for both processors to make both "/"
    Jesper> and "\\" work?

\ is not a legal character in a URI.
-- 
Colin Adams
Preston Lancashire

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