Inherited from SGML, the XML DTD is the most widely deployed means of defining an XML schema. Defined in the XML 1.0 Recommendation, DTDs do not support namespaces, which were specified later. This, together with the fact that its datatype system is weak and applies only to attributes, is one of the main motivations for the W3C to develop a new schema language. Table A-1 provides the fact sheet for XML DTDs.
Author: |
W3C. |
Status: |
Recommendation ("embedded" in XML 1.0). |
Location: |
|
Type: |
Grammar-based. |
PSVI: |
Yes (weak). |
Structures: |
Yes. |
Datatypes: |
Yes (weak). |
Integrity: |
Yes (internal through ID/IDREF/IDREFS attributes). |
Rules: |
No. |
Vendor support: |
Excellent. |
Miscellaneous: |
Non-XML syntax; no support for namespaces. Schema definition is only one of the features of DTDs. Requires deterministic content models. |
Copyright © 2002 O'Reilly & Associates. All rights reserved.