Re: SAX2: When to resolve System Ids

Michael Glavassevich <[email protected]> Wed, 31 Mar 2004 00:03:19 -0500
Newsgroups gmane.text.xml.sax.devel
Message-ID <OFF4C9AB72.C2177950-ON85256E68.001A17BB-85256E68.001BC46D@ca.ibm.com>
When I raised this a couple weeks ago, it got lost (possibly because these 
threads are getting fragmented between sax-devel and xml-dev) in the 
discussion on the canonical location for feature documentation. Either it 
was always intended that the systemId passed to 
DeclHandler.externalEntityDecl() be fully resolved or including this 
method among those affected by resolve-dtd-uris is an error.

[email protected] wrote on 03/30/2004 03:01:46 PM:

> Small confusion here (maybe someone reported this already):
> 
> The SAX documentation for the "resolve-dtd-uris" feature states that
> the value of true represents the required behaviour before this feature
> was added (and made it optional), that is, system identifiers passed to
>   a.. DTDHandler.notationDecl(), 
>   b.. DTDHandler.unparsedEntityDecl(), and 
>   c.. DeclHandler.externalEntityDecl()
> must be fully absolutized.
> 
> However, only the the documentation for notationDecl() and
> unparsedEntityDecl() confirms that this was the (old, default) rule.
> The documentation for externalEntityDecl() states that the *declared*
> system identifier must be passed.
> 
> Now, which one is true?
> 
> Karl

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [email protected]
E-mail: [email protected]