David Maus
David Maus
Step 1: Extract the Schematron from the RELAX NG. ``` java -jar /path/to/saxon.jar -xsl:extract-schematron.xsl -o:tei_ms.sch tei_ms.rng ``` Step 2: Validate work.xml against the extracted Schematron. The easiest way is with...
This looks not okay: > Caused by: javax.xml.transform.TransformerConfigurationException: jar:file:/D:/Repositories/MusicEncoding/fork_music-encoding/lib/schematron/ant-schxslt-1.9.5.jar!/xslt/2.0/include.xsl: line 40: Erforderliches Attribut "test" fehlt. > at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(Unknown Source) > at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTransformer(Unknown Source) > at name.dmaus.schxslt.Compiler.createPipeline(Compiler.java:125) > at name.dmaus.schxslt.Compiler.compile(Compiler.java:83) >...
This looks like a classpath-related error. If I put the Saxon JAR on the classpath and run the ```validate-source``` everything seems okay: ``` export CLASSPATH=lib/saxon/saxon-he-11.5.jar ant validate-source Buildfile: /tmp/music-encoding/build.xml init:...
I think this could be done with a compiler parameter ```$inherit-role as xs:boolean``` that toggles this behaviour. The next edition of ISO Schematron will most likely allow dynamic expressions in...