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

Re: xs:anyURI allows a space

Subject: Re: xs:anyURI allows a space
From: Owen Rees <owen.rees@xxxxxx>
Date: Mon, 16 Jul 2007 15:40:07 +0100
Re:  xs:anyURI allows a space
--On 16 July 2007 15:11 +0100 Andrew Welch wrote:

If makes it difficult when resolving relative paths in the URIResolver
as something that's a valid xs:anyURI in a call to doc() causes a
URISyntaxException in Java when it hits the resolver - don't they both
sing from the same rec?

No, they do not sign from the same rec.


XML Schema datatypes <http://www.w3.org/TR/xmlschema-2/#anyURI> hands the problem to <http://www.w3.org/TR/2001/REC-xlink-20010627/#link-locators> the Linking Language which defines an "escaping procedure" that is to be applied to locator attributes to turn them into URIs.

One feature of that process is that space characters are converted.

Just to add confusion, the XPath 2 iri-to-uri function performs what seems to me to be the same conversion, but its specification does not refer to xs:anyURI - <http://www.w3.org/TR/xpath-functions/#func-iri-to-uri>.

--
Owen Rees
=======================================================
Hewlett-Packard Limited
Registered Office: Cain Road, Bracknell, Berks RG12 1HN
Registered No: 690597 England

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.