Subject: [xsl] xs:anyURI allows a space From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx> Date: Mon, 16 Jul 2007 15:11:06 +0100 |
What is it that xs:anyURI allows a space, but Java's URI class does not (when using the single argument constructor) ?
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?
The solution it seems is to manually %HH escape the spaces (and use the single arg constructor), or manually deconstruct the href and then use the appropriate constructor, eg for the relative href "the file.xml":
Related-but-possibly-Saxon-specific-question: Should the href argument that's passed to the resolve(href, base) method in the URIResolver be %HH encoded - the base argument is, but the href argument comes through exactly as it's written in the stylesheet ?
-- http://andrewjwelch.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Looking for XSL consultan, Michael Kay | Thread | RE: [xsl] xs:anyURI allows a space, Colin Adams |
RE: [xsl] dynamic grouping assignme, Michael Kay | Date | RE: [xsl] xs:anyURI allows a space, Colin Adams |
Month |