summaryrefslogtreecommitdiff
path: root/test/schematron/zvon11.sct
blob: 79b01fdfb97ea4d58d1bbb416fc79b81b5dcc144 (plain)
1
2
3
4
5
6
7
8
<schema xmlns="http://www.ascc.net/xml/schematron" >
     <pattern name="Attributes present">
          <rule context="BBB">
               <assert test="not(@aaa) or (@aaa and @bbb)">The element must not have an isolated aaa attribute</assert>
               <assert test="not(@bbb) or (@aaa and @bbb)">The element must not have an isolated bbb attribute</assert>
          </rule>
     </pattern>
</schema>