Re WF, V, and MSXML
James Clark
jjc at jclark.com
Fri Jun 13 14:43:21 BST 1997
>The reason MSXML doesn't implement RMD yet is because there are
>problems with the RMD=IGNORE concept since ignoring the DTD can result
>in different data being given to the application - which generally is a
>bad thing. The spec says it is an error to specify RMD=IGNORE if the
>DTD contains any declarations of:
>1) attributes with default values, if elements to which
>these attributes apply appear in the document instance without
>specifying values for these attributes, or
>The problem is that if the parser ignores the DTD, how can it
>detect #1 above ?
Obviously it can't. If a parser wants to fully validate an XML document it
has to read the entire DTD. One of the things it must validate, if the
document has RMD=IGNORE, is that the DTD could be ignored without changing
the data the application received. A parser that is not validating, on the
other hand, can choose to take advantage of the RMD decl and not parse the
DTD. Provided that the document has been validated, the non-validating
parser will be guaranteed to get the same results as the validating parser.
James
xml-dev: A list for W3C XML Developers
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To unsubscribe, send to majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
List coordinator, Henry Rzepa (rzepa at ic.ac.uk)
More information about the Xml-dev
mailing list