Schematron 内で xPath を使用しています。タイプがターゲットタイプと等しいことを確認できます。たとえば、「xsd:string eq xsd:string」。
<sch:rule context="uis:variable/uis:dependency/uis:length">
<sch:assert test="**../../@type eq 'xsd:string'**">
Text
</sch:assert>
</sch:rule>
ユーザーが定義した型が xsd:string から派生したものかどうかを確認するにはどうすればよいですか? 私はもう試した:
<sch:rule context="uis:variable/uis:dependency/uis:length">
<sch:assert test="**../../@type instance of attribute (*,xsd:string)**">
Text
</sch:assert>
</sch:rule>
しかし、うまくいきません。