I'm not sure I agree with that. The parser calls event callbacks based on
things it parsed. If it never parsed a DOCTYPE decl, then why would it call
anything on the doc type handler? And given that you must have a DOCTYPE
decl in order to have either type of subset, validing if a DOCTYPE decl is
present makes a lot of sense. If you didn't need any subsets, why did you
have a DOCTYPE decl?
--------------
Dean Roddey
Software Geek Extraordinaire
Portal, Inc
[EMAIL PROTECTED]
-----Original Message-----
From: Chris Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 29, 2001 12:59 PM
To: [EMAIL PROTECTED]
Subject: DOCTYPE without subsets
SAXParser::setValidationScheme takes Val_Auto as an option.
Val_Auto is documented as "turn on validation if any internal/external DTD
subset have been seen"
The actual meaning appears to be turn on validation if a doctype
declaration has been seen.
I also noticed that my DocTypeHandler does not get called if there are no
subsets which seems wrong. A doctype without an internal or external
subset is legal (although not particularly useful) and should be passed on
to the doctypeDecl function.
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]