On 7/16/07, Colin Adams <colinpauladams(_at_)hotmail(_dot_)com> wrote:
>From: "Andrew Welch" <andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com>
>What is it that xs:anyURI allows a space?
Does it? I dont think that is right.
xs:URI is for IRIs, which dont allow a space.
I don't know why I wrote "what" instead of "why"... probably going mad.
Anyway, read the note here: http://www.w3.org/TR/xmlschema-2/#anyURI
"Note: Spaces are, in principle, allowed in the ·lexical space· of
anyURI, however, their use is highly discouraged (unless they are
encoded by %20)."
and a quick sanity check:
<xsl:sequence select="xs:anyURI('the file.xml')"/>
returns
"the file.xml" (using Saxon 8.9.0.4)
whereas new URI("the file.xml") in Java 1.6 causes a URISyntaxException.
--
http://andrewjwelch.com
--~------------------------------------------------------------------
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>
--~--