W3C home > Mailing lists > Public > public-wai-ert-tsdtf@w3.org > June 2007

Schematron for structure review (alpha)

From: Christophe Strobbe <christophe.strobbe@esat.kuleuven.be>
Date: Wed, 20 Jun 2007 20:29:39 +0200
Message-Id: <>
To: TSDTF <public-wai-ert-tsdtf@w3.org>

I have an old action item to look into automating the structure review

Attached is the first version of a ISO Schematron file that checks 
that the required metadata are present; checks for some of the naming 
conventions have not been implemented yet. Note that this schematron 
complements the XML Schema for TCDL 2.0; it does not replace the XML Schema.
The current version uses XSTL 1.0 and XPath 1.0. (I would prefer 
using XSLT 2.0 and XPath 2.0, but I haven't found an XSLT 2.0 
implementation yet.)

To run this schematron, you will need
* an XSLT engine (I use Saxon 8.9 with JDK 1.5; see 
* the XSLT implementation from <http://www.schematron.com/validators.html>,
* a script that saves some typing on the command line (see the 
attached file 'schematron.text', which you need to rename to 
'schematron.bat'). The script generates an XSLT file from the 
schematron, and then uses that XSLT file to "validate" the TCDL file 
you specified. It assumes that the XSLT implementation files are in 
the directory from which you're calling the script. It uses 
iso_svrl.xsl to output Schematron Validation Report Language (SVRL), 
but you can also use iso_schematron_text.xsl to output plain text. 
(There is no XSLT that outputs EARL.)

If you can't run the schematron (I may have overlooked something in 
the instructions), please let me know.

As an alternative to the XSLT implementation, you can also use other 
tools. For example, the XML editor <oXygen/> supports ISO Schematron 
since version 8.2: <http://www.oxygenxml.com/validation.html> 
(<oXygen/> can be run as standalone program adn as Eclipse plugin). 
For other implementations, see the Schematron Wiki at 

Best regards,


Christophe Strobbe
K.U.Leuven - Dept. of Electrical Engineering - SCD
Research Group on Document Architectures
Kasteelpark Arenberg 10 bus 2442
B-3001 Leuven-Heverlee
tel: +32 16 32 85 51

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm

Received on Wednesday, 20 June 2007 18:32:33 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:06:00 UTC