こことそこに説明されているように、Saxon9HE の助けを借りて、XSLT ファイル (iso_svrl_for_xslt2.xsl) を介して Schematron ファイルをコンパイルしようとしています。
ここでは、3 つの引数を指定して Saxon を呼び出しています。
-o:schema-compiled.xslは出力ファイル (XSLT スクリプト) です。
-s:example_schematron.xslはソース ファイルです。
iso-schematron-xslt2/iso_svrl_for_xslt2.xslは、schematron ファイルを XSLT スクリプトにコンパイルするために使用されるスタイルシート ファイルです。
java -jar saxon9he.jar -o:schema-compiled.xsl -s:example_schematron.sch iso-schematron-xslt2/iso_svrl_for_xslt2.xsl
ファイルは次のとおりです。
example_schematron.sch:
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.ascc.net/xml/schematron">
<title>Test Schematron</title>
<pattern name="My rules">
<rule context="User">
<assert test="count(email) != 1">
User shall have exactly one email
</assert>
</rule>
</pattern>
</schema>
スキーマコンパイル済み.xsl:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
空の schema-compiled.xsl が表示されるのはなぜですか?