Home | History | Annotate | Download | only in schematron
      1 <schema xmlns="http://www.ascc.net/xml/schematron" >
      2      <pattern name="Print both cases">
      3           <rule context="AAA">
      4                <assert test="BBB">BBB element is missing.</assert>
      5                <report test="BBB">BBB element is present.</report>
      6                <assert test="@name">AAA misses attribute name.</assert>
      7                <report test="@name">AAA contains attribute name.</report>
      8           </rule>
      9      </pattern>
     10      <pattern name="Print positive result only">
     11           <rule context="AAA">
     12                <report test="BBB">BBB element is present.</report>
     13                <report test="@name">AAA contains attribute name.</report>
     14           </rule>
     15      </pattern>
     16      <pattern name="Print negative result only">
     17           <rule context="AAA">
     18                <assert test="BBB">BBB element is missing.</assert>
     19                <assert test="@name">AAA misses attribute name.</assert>
     20           </rule>
     21      </pattern>
     22 </schema>
     23 
     24