| <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> | |