blob: f98b6d89a46b479e54c13ec086aa2a95781590f7 (
plain)
1
2
3
4
5
6
7
8
9
10
|
<schema xmlns="http://www.ascc.net/xml/schematron" >
<pattern name="a child of selected elements">
<rule context="CCC">
<assert test="parent::*[name()='BBB' or name()='DDD']">Element CCC must not be a child of element
<name path="parent::*"/>
</assert>
</rule>
</pattern>
</schema>
|