mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-10 08:58:16 +03:00
* schematron.c: report improvement * test/schematron/zvon* result/schematron/zvon*: more tests Daniel
13 lines
681 B
Plaintext
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>
|
|
|