Schematron is a rule-based XML schema language, offering flexibility and power that W3C XML schema, RELAX NG, and DTDs simply can't match.
You need Schematron and can't settle for other languages if you have to check rules that go beyond checking the document structures (i.e., checking that an element bar is included in element foo) and their datatypes. Schematron is the right tool for checking conditions such as "startDate is earlier than or equal to endDate."
Schematron is also the right tool to use if you have to raise user-friendly error messages rather than depend on error messages that are generated by a schema processor and that are often obscure. Schematron builds on XPath. You will need to understand XPath to to get the most from Schematron.
Table of contents
- Schematron, XSLT, and XPath
- A Short History of XSLT, XPath, and Friends
- Which Schematron Do You Need?
- Let's Start Ruling
- Assembling Rules in a Schema
- Other Goodies
- About the Author
- Title: Schematron
- Release date: March 2007
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596558741
You might also like
XPath: Navigating XML with XPath 1.0 and 2.0 Kick Start
XPath is to XML as SQL is to databases: XML applications need XPath to locate specific …
40 Algorithms Every Programmer Should Know
Learn algorithms for solving classic computer science problems with this concise guide covering everything from fundamental …
Computational Thinking - A beginner's guide to problem-solving and programming
Computational thinking (CT) is a timeless, transferable skill that enables you to think more clearly and …
Data Science from Scratch, 2nd Edition
To really learn data science, you should not only master the tools—data science libraries, frameworks, modules, …