blob: 6f67877f17140287f4af904e0e4eb417813549f7 [file] [log] [blame]
<schema xmlns="http://www.ascc.net/xml/schematron" >
<pattern name="Test attribute">
<rule context="CCC">
<report test="parent::BBB and not(@id)">Attribute id is missing</report>
<report test="not(parent::BBB) and @id">Attribute id is used in wrong context</report>
</rule>
</pattern>
</schema>