Schematron と組み合わせた SXD スキーマの検証に問題があります。
このガイド<xs:appinfo>
で説明されている手順に従って、次のように XSD ドキュメントのタグの間にスキーマトロンを組み込みました。
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Test">
<xs:annotation>
<xs:appinfo>
<sch:pattern name="Testing schematron" xmlns:sch="http://purl.oclc.org/dsdl/schematron">
<sch:rule context="Test">
<sch:assert test="@Attribute1">Attribute 1 exists</sch:assert>
</sch:rule>
</sch:pattern>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:attribute name="Attribute1" type="xs:string" use="optional"/>
<xs:attribute name="Attribute2" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
</xs:schema>
このドキュメントは、ドキュメントをテスト (または検証) することになっています
<?xml version="1.0" encoding="ISO-8859-1"?>
<Test Attribute1="attr1"/>
schematronページにリストされている単純な xsltproc ベースのスクリプトを使用します。残念ながら、スクリプトの最後のステップで次のエラー メッセージが表示されます。
step3.xsl:13: parser error : Extra content at the end of the document
plates select="*|comment()|processing-instruction()" mode="M0"/></axsl:template>
^
cannot parse step3.xsl
このエラーの原因を突き止める手助けをいただければ幸いです。