xml - Schematron sh script not behaving -
i found shell script schematron supposed able feed schematron schema, , xml document, apply schematron rules xml document. found script here:
https://code.google.com/p/schematron/wiki/runningschematronwithgnomexsltproc
the various xsl files used script downloaded schematron distribution here:
http://www.schematron.com/implementation.html
i'll repeat shell script here, convenience.
#!/bin/bash echo step1 ... xsltproc iso_dsdl_include.xsl $1 > step1.xsl echo step2 ... xsltproc iso_abstract_expand.xsl step1.xsl > step2.xsl echo step3 ... xsltproc iso_svrl_for_xslt1.xsl step2.xsl > step3.xsl echo validation ... xsltproc step3.xsl $2 > result.svrl
i run script this:
run_schematron.sh docbook1.sch my_xml.xml
the shell script generates intermediate files, step1.xsl, step2.xsl, , step3.xsl. off rails @ step2.xsl, since looks this:
<?xml version="1.0"?> @linkend on footnoteref must point footnote. @linkend on synopfragmentref must point synopfragment.
that's not looking xsl stylesheet me. ideas?
the problem using docbook.sch docbook 5.0, not iso schematron schema (the namespace bound s:
prefix not http://purl.oclc.org/dsdl/schematron
).
in docbook.sch docbook 5.0, change this:
xmlns:s="http://www.ascc.net/xml/schematron"
to this:
xmlns:s="http://purl.oclc.org/dsdl/schematron"
...and work.
in docbook.sch docbook 5.1 (which hasn't been offically released yet), namespace has been changed.
Comments
Post a Comment