[
Lists Home |
Date Index |
Thread Index
]
mc@xegesis.org (Mike Champion) writes:
>I'm not sure what "processing" a DTD means in a technical sense.
>Accepting the entity declarations, setting the default attribute
>values, etc. but not enforcing any content model constraints? Or
>just parsing DTDs and ignoring everthing in there. (IIRC either would
>be "legal" for a non- validating parser). What would you suggest J2ME
>parsers do?
XML 1.0 non-validating parsers are required to process the internal
subset of the DOCTYPE. They're only allowed to ignore the external
subset and references to external resources. In practice, this means
that NVPs have to understand ENTITY declarations and ATTLIST
declarations whether or not they care about external DTDs.
For TAM, I left that work up to the application. If it cares about the
contents of the DOCTYPE, it can do the parsing and retrieval and merge
that information with TAM events as they arrive. If it doesn't care, it
doesn't care.
--
Simon St.Laurent
Ring around the content, a pocket full of brackets
Errors, errors, all fall down!
http://simonstl.com -- http://monasticxml.org
|