You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
681 B
Plaintext

<schema xmlns="http://www.ascc.net/xml/schematron" >
<pattern name="Select empty elements CCC">
<rule context="CCC">
<assert test="normalize-space(.) and *">Source contains an empty element CCC </assert>
<report test="normalize-space(.) = ''">[1]An element CCC does not contain any text</report>
<assert test="normalize-space(.)">[2]An element CCC does not contain any text</assert>
<report test="not(*)">[1]An element CCC does not contain any child element</report>
<assert test="*">[2]An element CCC does not contain any child element</assert>
</rule>
</pattern>
</schema>