summaryrefslogtreecommitdiffstats
path: root/libxml2/test/schematron/zvon11.sct
diff options
context:
space:
mode:
Diffstat (limited to 'libxml2/test/schematron/zvon11.sct')
-rw-r--r--libxml2/test/schematron/zvon11.sct8
1 files changed, 8 insertions, 0 deletions
diff --git a/libxml2/test/schematron/zvon11.sct b/libxml2/test/schematron/zvon11.sct
new file mode 100644
index 0000000..79b01fd
--- /dev/null
+++ b/libxml2/test/schematron/zvon11.sct
@@ -0,0 +1,8 @@
+<schema xmlns="http://www.ascc.net/xml/schematron" >
+ <pattern name="Attributes present">
+ <rule context="BBB">
+ <assert test="not(@aaa) or (@aaa and @bbb)">The element must not have an isolated aaa attribute</assert>
+ <assert test="not(@bbb) or (@aaa and @bbb)">The element must not have an isolated bbb attribute</assert>
+ </rule>
+ </pattern>
+</schema>