Validating xhtml code


21-Jun-2019 19:04

This paper introduces the Schematron language and the available implementations.An overview of the architecture, with a view to producing customised versions is also provided.

Full use of tree pattern validation provides the maximum amount of freedom when modelling constraints for a schema.This is followed by an outline of Schematron and the intended uses which have guided its design.The Schematron language is then discussed, covering all major elements in the language with examples of their usage.This comes at very little cost: XPath is available in most XML environments.

For example the following types of constraint are hard, or impossible to express with other schema languages.

Tree patterns do just that, and XPath provides a convenient syntax in which to express those patterns.