summaryrefslogtreecommitdiffstats
path: root/libxml2/test/schematron/zvon10.sct
blob: 783fac57320a81fc0bc5b0964650eb7b8115ada2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<schema xmlns="http://www.ascc.net/xml/schematron" >
     <pattern name="Open model">
          <rule context="AAA">
               <assert test="BBB"> BBB element is not present</assert>
               <assert test="CCC"> CCC element is not present</assert>
          </rule>
     </pattern>
     <pattern name="Closed model">
          <rule context="AAA">
               <assert test="BBB"> BBB element is not present</assert>
               <assert test="CCC"> CCC element is not present</assert>
               <assert test="count(BBB|CCC) = count (*)">There is an extra element</assert>
          </rule>
     </pattern>
</schema>