This link has been bookmarked by 12 people . It was first bookmarked on 26 Jul 2006, by someone privately.
-
05 Aug 15
-
15 Nov 10
-
17 Feb 09
Tony SutherlandThe Schematron differs in basic concept from other schema languages in that it not based on grammars but on finding tree patterns in the parsed document. This approach allows many kinds of structures to be represented which are inconvenient and difficult
tools business programming xml schema xslt validation xpath text processing rules schematron
-
10 Apr 08
jeanjordaanThe Schematron differs in basic concept from other schema languages in that it not based on grammars but on finding tree patterns in the parsed document.
schema schematron semantic xpath xml validation tools programming xslt
-
14 Jan 08
-
31 May 07
-
02 May 07
-
- Report elements allow you to diagnose which variant of a language you are dealing with.
- Assert elements allow you to confirm that the document conforms to a particular schema.
- First, find a context nodes in the document (typically an element) based on XPath path criteria;
- Then, check to see if some other XPath expressions are true, for each of those nodes.
Overview
The Schematron differs in basic concept from other schema languages in that it not based on grammars but on finding tree patterns in the parsed document. This approach allows many kinds of structures to be represented which are inconvenient and difficult in grammar-based schema languages. If you know XPath or the XSLT expression language, you can start to use The Schematron immediately.
And it has free and open source implementations available. The Schematron is trivially simple to implement on top of XSLT and to customize. (There are also implementations in Python and Perl)
The Schematron allows you to develop and mix two kinds of schemas:
The Schematron is based on a simple action:
The Schematron can be useful in conjunction with many grammar-based structure-validation languages: DTDs, XML Schemas, RELAX, TREX, etc. Indeed, Schematron is part of an ISO standard (DSDL: Document Schema Description Languages) designed to allow multiple, well-focussed XML validation languages to work together. You can even embed a Schematron schema inside an XML Schema <appinfo> element or inside a RELAX NG schema!
-
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.