Html validating - dating website for ugly bug ball
As an extensible, easy to use, open source tool Schematron is an extremely useful addition to the XML developers toolkit.
During the last few years a number of different XML schema languages have appeared as suggested replacements for the ageing Document Type Definition (DTD).
The general intent behind this paper is to furnish the reader with a broad overview of both Schematron and its approach to validation.
It does not provide a detailed tutorial of the language, although all major elements are discussed, and assumes that the reader is already familiar with XPath, XSLT, and XML DTDs.
As the XPath specification [XPath] shows, there are many possible kinds of relationship, known as 'axes'.
While XML does include an ID/IDREF mechanism which allows for cross-referencing between elements, and hence another form of relationships, it only weakly binds those elements.
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.More formally, the nodes and arcs within a graph of data can be traversed to both identify nodes, and then make assertions about the relationships of those nodes to others within the same graph.Assertions are therefore the mechanism for placing constraints on the relationships between nodes in a graph (elements and attributes in an XML document).Tree patterns do just that, and XPath provides a convenient syntax in which to express those patterns.Validation using tree patterns is a two-step process: Both the candidate object selection, and the assertions can be defined in terms of XPath expressions.The Schematron conformance language for custom implementation is also introduced.