1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-10 08:58:16 +03:00
libxml2/test/schematron/zvon5.sct
Daniel Veillard d541c8f8b4 report improvement more tests Daniel
* schematron.c: report improvement
* test/schematron/zvon* result/schematron/zvon*: more tests
Daniel
2005-07-31 16:49:51 +00:00

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>