Bob Foster <[EMAIL PROTECTED]> wrote on 08/05/2005 02:40:29 PM: > Michael Glavassevich wrote: > > Bob Foster <[EMAIL PROTECTED]> wrote on 08/05/2005 11:12:07 AM: > >>Excuse me, but if you set the parser so it does DTD _and_ schema > >>validation, then the document must be both DTD-valid and schema valid? > > > > Well, not exactly. With the dynamic validation feature turned on, the > > document will only be DTD validated if it has a DTD. Similarly a schema > > (more specifically an element declaration for the validation root) must be > > found for schema validation to be performed. If the document has both a > > DTD and schema it will be DTD validated and schema validated. If it has > > neither then no validation is performed. > > Sure, there are four possibilities: > > [DTD, no schema] DTD validation only > [no DTD, schema] schema validation only > [no DTD, no schema] no validation > [DTD, schema] both DTD and schema validation. > > So, to be more precise, is the latter possibility one that anyone wants?
I can't imagine it's common, but there's probably someone out there that relies on it, possibly to define constraints not possible with XML schema alone, like empty content models which forbid comments and processing instructions. > It seems more likely in the latter case, what people would want is > closer to what "http://xml.org/sax/features/external-general-entities" does. Right, though you could abandon DTDs altogether and just use XInclude. > Bob > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
