Schematron for structure review (alpha)

Hi,

I have an old action item to look into automating the structure review
(<http://www.w3.org/2007/04/10-tsdtf-minutes.html#action01>).

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 
<http://saxon.sourceforge.net/>),
* 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 
<http://www.eccnet.com/schematron/index.php/Main_Page>.

Best regards,

Christophe


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

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

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