[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: fn:document-uri in Saxon and XMLSpy

Subject: Re: fn:document-uri in Saxon and XMLSpy
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 06 Jan 2006 17:01:31 +0000
fn document uri node
>>>>> "Jesper" == Jesper Tverskov <jesper@xxxxxxxxxxx> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.