[jdom-interest] DTD information not present in DocType
Laurent Bihanic
laurent.bihanic at atosorigin.com
Mon Oct 1 06:33:11 PDT 2001
philip.nelson at omniresources.com wrote:
>>Why is the DeclHandler registration dependent on entity
>>expansion? Is that a
>>leftover from the time where DTD information was not stored
>>in DocType?
>
> This is by design. Unfortunately, it's not by JDOM design but by SAX2
> design. Whether or not you can get the internal subset is set by the
> setting of this property. The same property determines if entities are
> expanded or not. What this means is we don't have separate flags for
> building the internal subset and expanding entities.
Sorry, but I do not understand: With the unchanged code (i.e. the test on
expand is present), it seems the SAX parser still fires the DTD events but
DocType's internalSet then contains only the DTD comments.
I don't mind setting one or two flags but I'd like to make sure that either
DocType's internalSet is complete or totally empty.
One last question: You use "internal subset"; what's the difference between an
"internal subset" and the document DTD?
Laurent
More information about the jdom-interest
mailing list