summaryrefslogtreecommitdiffstats
path: root/libxml2/test/schematron/zvon9.sct
diff options
context:
space:
mode:
Diffstat (limited to 'libxml2/test/schematron/zvon9.sct')
-rw-r--r--libxml2/test/schematron/zvon9.sct9
1 files changed, 9 insertions, 0 deletions
diff --git a/libxml2/test/schematron/zvon9.sct b/libxml2/test/schematron/zvon9.sct
new file mode 100644
index 0000000..6f67877
--- /dev/null
+++ b/libxml2/test/schematron/zvon9.sct
@@ -0,0 +1,9 @@
+<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>
+