1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-20 18:50:08 +03:00
libxml2/test/schematron/zvon9.sct

10 lines
356 B
Plaintext
Raw Permalink Normal View History

<schema xmlns="http://www.ascc.net/xml/schematron" >
<pattern name="Test attribute">
<rule context="CCC">
<report test="parent::BBB and not(@id)">Attribute id is missing</report>
<report test="not(parent::BBB) and @id">Attribute id is used in wrong context</report>
</rule>
</pattern>
</schema>