Re: SAX: finalising org.sax.xml.Parser
James Clark (jjc@jclark.com)
Fri, 27 Feb 1998 10:25:18 +0700
David Megginson wrote:
>
> Matthew Gertner writes:
>
> > How about a 2x2 matrix?
> >
> > With DTD
> > setValidate(false) - checks for well-formedness, external subset is used
> > for entity and notation declarations, etc.
> > setValidate(true) - full validation
> >
> > Without DTD
> > setValidate(false) - just checks for well-formedness
> > setValidate(true) - throws an exception
>
> This comes back to the original problem, however: what if I want to
> include the external subset and external text entities but don't want
> to validate? I'm not sure that the two should be tied together
> (AElfred, for example, does not validate, but it does use the DTD).
The following seem the reasonable combinations to me:
- Validate and process all external entities (if you're validating
you've got to process all external entities).
- Don't validate and process external DTD and parameter entitities
depending on the setting of standalone.
- Don't validate and process external DTD and parameter entities
(irrespective of the setting of standalone).
- Don't validate and don't process external DTD and parameter entities
(irrespective of the setting of standalone).
James