- From: Christophe Strobbe <christophe.strobbe@esat.kuleuven.be>
- Date: Tue, 03 Jul 2007 17:23:04 +0200
- To: public-wai-ert-tsdtf@w3.org
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 (<http://uche.ogbuji.net/tech/4suite/amara/>) 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 (<http://cheeseshop.python.org/pypi/4Suite-XML>), 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 (<http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_schematron.html>). However, using XSLT shouldn't be a problem; see <http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_xslt.html>. 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 <http://www.schematron.com/implementation.html> or at <http://www.schematron.com/validators.html>. Best regards, Christophe >Regards, > Shadi > > >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 | -- 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 Tuesday, 3 July 2007 15:23:26 UTC