Effective XML: 50 Specific Ways to Improve Your XML
When considering the schema language that's appropriate for your needs, the following questions may help you decide.
Finally, remember that none of these needs are mutually exclusive. If you answered yes to several of these questions, you may want to apply multiple schemas to a single document in sequence. Hammers are useful tools, but you wouldn't use one to cut wood. Use the right tool for the job. The W3C XML Schema Language is a useful tool, but it's not the only tool, and it doesn't fit all applications. DTDs still work very well for traditional narrative documents such as books, transcripts, and e-mail. Schematron can make assertions no other schema language can make. RELAX NG is much easier to learn and master than the W3C XML Schema Language. All carpenters have many tools in their toolboxes. You should have many schema languages in your XML toolbox. |