summaryrefslogtreecommitdiff
path: root/test/schematron/zvon16.sct
diff options
context:
space:
mode:
Diffstat (limited to 'test/schematron/zvon16.sct')
-rw-r--r--test/schematron/zvon16.sct30
1 files changed, 0 insertions, 30 deletions
diff --git a/test/schematron/zvon16.sct b/test/schematron/zvon16.sct
deleted file mode 100644
index 3be75cd..0000000
--- a/test/schematron/zvon16.sct
+++ /dev/null
@@ -1,30 +0,0 @@
-<schema xmlns="http://www.ascc.net/xml/schematron" >
- <pattern name="Required ID">
- <rule context="cat | dog">
- <assert test="@id">An element of type
- <name/> should have an id attribute that is a unique identifier for that animal.
- </assert>
- </rule>
- </pattern>
- <pattern name="Required IDREF">
- <rule context="catowner">
- <assert test="@pet">An element of type
- <name/> should have a pet attribute.
- </assert>
- </rule>
- </pattern>
- <pattern name="IDREF should reference an ID used in the same document">
- <rule context="catowner[@pet]">
- <assert test="id(@pet)">An element of type
- <name/> should have a pet attribute that should contain a unique identifier.
- </assert>
- </rule>
- </pattern>
- <pattern name="IDREF should reference an ID of a certain element type only">
- <rule context="catowner[@pet]">
- <assert test="(name(id(@pet)) ='cat')">An element of type
- <name/> should have a pet attribute that should contain the unique identifier for a cat.
- </assert>
- </rule>
- </pattern>
-</schema>