Reputation: 6348
I have the option of validating XHTML 1.1 documents against the official XHTML 1.1 DTDs (I use the plural because the "main" DTD actually includes several others) or against the official XHTML 1.1 XML Schemas.
Now I know that the XML Schema language is more expressive and powerful and can therefore check for more things. What I'm wondering is whether these "extra" features are actually in use in the official schemas. To put it differently, will validating against these schemas check for more things than validating against these DTDs?
Upvotes: 6
Views: 519
Reputation: 13397
The XHTML 1.1 pages for the DTD and XML schema both state, "This appendix is normative." That means they should perform identical validation checks.
So to answer your question: No.
Upvotes: 1
Reputation: 4087
It's a requirement that anything that validates using the DTD should also validate using the schema.
The conformance definition states that
The document MUST conform to the constraints expressed in Appendix C.
and Appendix C contains the DTDs. Nothing is said about conforming to the schemas which are in Appendix D. Therefore, any extra constraints from the schemas would not be binding, since documents only need to satisfy the DTDs.
(Edited)
Upvotes: 1
Reputation: 9377
There are many things that you can only express with a schema and than means that validating against a schema will always give you a better response about the validity of your XML file.
Upvotes: 0