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

Re: Schematron for structure review (alpha)

From: Shadi Abou-Zahra <shadi@w3.org>
Date: Wed, 20 Jun 2007 22:37:43 +0200
Message-ID: <46799017.208@w3.org>
To: Christophe Strobbe <christophe.strobbe@esat.kuleuven.be>
CC: public-wai-ert-tsdtf@w3.org

Hi Christophe,

Very interesting work, thanks for providing this script. It will help 
the structure reviews a lot, hopefully we can attach this checker right 
into the submission form at some point in the near future.


Christophe Strobbe wrote:
> 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

Shadi Abou-Zahra     Web Accessibility Specialist for Europe |
Chair & Staff Contact for the Evaluation and Repair Tools WG |
World Wide Web Consortium (W3C)           http://www.w3.org/ |
Web Accessibility Initiative (WAI),   http://www.w3.org/WAI/ |
WAI-TIES Project,                http://www.w3.org/WAI/TIES/ |
Evaluation and Repair Tools WG,    http://www.w3.org/WAI/ER/ |
2004, Route des Lucioles - 06560,  Sophia-Antipolis - France |
Voice: +33(0)4 92 38 50 64          Fax: +33(0)4 92 38 78 22 |
Received on Wednesday, 20 June 2007 20:40:52 UTC

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