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

RE: document() source

Subject: RE: document() source
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 31 Oct 2005 12:08:24 -0000
RE:  document() source
> The question being, is the argument of document() an "other 
> XML strings
> meant to be used as URI references" If it is, you don't need to
> explictly escape the system SHOULD (ie it may, or may not, but on a
> good day, it might) do the esacping automatically.

I think the current status in the 2.0 specs (primarily fn:doc) is:

* it's permitted to supply an unescaped "URI" (a wannabe-URI) as the
argument

* it's context-dependent/implementation-dependent whether any given URI,
whether escaped or not, will find a document

* it's implementation-defined whether doc("a doc.xml") gives you the
identical document node as doc("a%20doc.xml"):  "If two calls to this
function supply different absolute URI References as arguments, the same
document node may be returned if the implementation can determine that the
two arguments refer to the same resource."

Not completely satisfactory, but things that depend on the URI specs rarely
are.

Saxon has recently changed so that the default URIResolver recognizes
unescaped "URI"s. However, it doesn't currently recognize the data: scheme.

Michael Kay
http://www.saxonica.com

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.