[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xml-dev] Namespaces, Xml Schema Whitespace normalization, xs:anyURI, and URILiterals in XPath 2.0
- To: <lists@...>,"'Michele Vivoda'" <idmichele@...>,<xml-dev@...>
- Subject: RE: [xml-dev] Namespaces, Xml Schema Whitespace normalization, xs:anyURI, and URILiterals in XPath 2.0
- From: "Michael Kay" <mike@...>
- Date: Wed, 29 Mar 2006 23:13:19 +0100
- In-reply-to: <442AE14D.3030706@...>
- Thread-index: AcZTaESktt99VpM1TY+8uwrefsBk7wAE14Og
> Technically this is not a valid URI and therefore not a legal
> namespace name.
That depends which spec you read. According to the namespaces Rec, any
string is a legal namespace name. Yes, they talk throughout of URIs (or in
1.1, IRIs) but the spec doesn't say it's an error if it's not a URI/IRI, and
I believe the omission is deliberate. Therefore, non-URIs are legal
namespace names.
The Namespaces Rec says: "[Definition:] The attribute's value, a URI
reference, is the namespace name identifying the namespace." But in its
conformance section it doesn't say a document is non-conformant if the value
isn't a valid URI reference; nor does the spec contain any definition or
reference saying exactly what it means by a "URI reference".
The Infoset says: "This specification does not define an information set for
documents which use relative URI references in namespace declarations." This
reflects a lively controversy over whether or not relative namespace URIs
should be resolved against a base URI (the outcome being that no-one could
agree, so they decided to deprecate their use), but it doesn't resolve the
issue of whether a document that says xmlns="####" is
legal/conformant/well-formed or not: let alone xmlns=" ".
Basically, the naming and addressing foundations of XML are a disgraceful
shambles, and anyone building higher-level specs like XSLT and XQuery on
these shaky foundations simply has to improvise.
Michael Kay
http://www.saxonica.com/
- Prev by Date:
Re: [xml-dev] Namespaces, Xml Schema Whitespace normalization, xs:anyURI, and URILiterals in XPath 2.0
- Next by Date:
Re: [xml-dev] Namespaces, Xml Schema Whitespace normalization, xs:anyURI,and URILiterals in XPath 2.0
- Previous by thread:
Re: [xml-dev] Namespaces, Xml Schema Whitespace normalization, xs:anyURI, and URILiterals in XPath 2.0
- Next by thread:
Re: [xml-dev] Namespaces, Xml Schema Whitespace normalization, xs:anyURI,and URILiterals in XPath 2.0
- Index(es):
|