Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Canonicalization does not handle URI correctly

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Michael Kay" <mike AT saxonica.com>
  • To: "'XOM API for Processing XML with Java'" <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Canonicalization does not handle URI correctly
  • Date: Fri, 25 Sep 2009 09:08:19 +0100

> I found the bug using a software which provides a jar-URI to
> read XML file from a jar archive. The URI looks like
> jar:file:/path/to/jar/archive.jar!/path/within/archive/data.xml

Actually, this is not a vald URI. Even the java.net.URI class will reject it
as invalid.

It's a URI-like string conforming to a private non-URI syntax devised by
Sun, which is accepted by many software products in lieu of a URI or URL,
but you can't expect conformant URI-based software to handle it. (Saxon
makes a rare exception to its usual insistence on conformant input here: it
generally accepts these jar: pseudo-URIs in places where strictly, a valid
URI is required for W3C conformance.)

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay





Archive powered by MHonArc 2.6.24.

Top of Page