Re: Schematron for structure review (alpha)

Hi Shadi,

At 22:37 20/06/2007, Shadi Abou-Zahra wrote:
>(...), hopefully we can attach this checker right into the 
>submission form at some point in the near future.

The Amara XML Toolkit (<>) 
is an open-source collection of Python tools and has an ISO 
Schematron implementation. Amara 1.2a2 requires Python 2.4 and 4Suite XML 1.0
(<>), which is also open source.

I haven't found a PHP implementation of ISO Schematron; I only found 
a PHP implementation for Schematron 1.5 
However, using XSLT shouldn't be a problem; see 

If we choose the option of using the XSLT produced by the XSLT 
implementation (e.g. to use it in PHP code), we need to take into 
account that there is currently no stylesheet that produces an HTML 
report at <> or at 

Best regards,


>   Shadi
>Christophe Strobbe wrote:
>>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 <>,
>>* 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: 
>><> (<oXygen/> can be run as 
>>standalone program adn as Eclipse plugin). For other 
>>implementations, see the Schematron Wiki at 
>>Best regards,
>Shadi Abou-Zahra     Web Accessibility Specialist for Europe |
>Chair & Staff Contact for the Evaluation and Repair Tools WG |
>World Wide Web Consortium (W3C)  |
>Web Accessibility Initiative (WAI), |
>WAI-TIES Project,       |
>Evaluation and Repair Tools WG, |
>2004, Route des Lucioles - 06560,  Sophia-Antipolis - France |
>Voice: +33(0)4 92 38 50 64          Fax: +33(0)4 92 38 78 22 |

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 


Received on Tuesday, 3 July 2007 15:23:26 UTC