Jeroen Frijters wrote:
> > I'd like some feedback on a change I'd like to make to a small part  
> > of the JAXP implementation.
> [...]
> > Note that this is contentious, because Sun's QName *doesn't do any  
> > validation* of its input. However, I still think it's the 
> > right thing to do, and I'm not alone:
> 
> The Sun docs explicitly say that they don't validate:
> 
> "The Namespace URI is not validated as a URI reference. The local part
> is not validated as a NCName as specified in Namespaces in XML."

Ah? That must be a recent amendment, I certainly don't recall it in the
original JAXP spec. Probably they felt they had to make this explicit
*after* receiving a lot of negative feedback about its behaviour.

Well, if the API spec itself is broken, laisse tomber.

> Besides, I don't see how you can validate an anyURI, since it can be
> absolute or relative.

According to the XML namespaces spec

  http://www.w3.org/TR/xml-names/#iri-use
  http://www.w3.org/2000/09/xppa

you cannot use relative URIs in XML namespace references.
-- 
Chris Burdess

Reply via email to