diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2005-07-30 21:28:12 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2005-07-30 21:28:12 +0000 |
commit | 22cce34629365d9238c4532dfac530f614adaaba (patch) | |
tree | 3c61358a637659bcfdd682e367742634d2ab9e12 /test/schematron | |
parent | e70375cd7911ac73df1b488cc0afc0b78d99819e (diff) | |
download | android_external_libxml2-22cce34629365d9238c4532dfac530f614adaaba.tar.gz android_external_libxml2-22cce34629365d9238c4532dfac530f614adaaba.tar.bz2 android_external_libxml2-22cce34629365d9238c4532dfac530f614adaaba.zip |
a few first tests from Zvon unfortunately with the old syntax Daniel
* test/schematron/*: a few first tests from Zvon unfortunately
with the old syntax
Daniel
Diffstat (limited to 'test/schematron')
-rw-r--r-- | test/schematron/zvon1_0.sct | 23 | ||||
-rw-r--r-- | test/schematron/zvon1_0.xml | 3 | ||||
-rw-r--r-- | test/schematron/zvon1_1.xml | 3 |
3 files changed, 29 insertions, 0 deletions
diff --git a/test/schematron/zvon1_0.sct b/test/schematron/zvon1_0.sct new file mode 100644 index 00000000..36179ddd --- /dev/null +++ b/test/schematron/zvon1_0.sct @@ -0,0 +1,23 @@ +<schema xmlns="http://www.ascc.net/xml/schematron" > + <pattern name="Print both cases"> + <rule context="AAA"> + <assert test="BBB">BBB element is missing.</assert> + <report test="BBB">BBB element is present.</report> + <assert test="@name">AAA misses attribute name.</assert> + <report test="@name">AAA contains attribute name.</report> + </rule> + </pattern> + <pattern name="Print positive result only"> + <rule context="AAA"> + <report test="BBB">BBB element is present.</report> + <report test="@name">AAA contains attribute name.</report> + </rule> + </pattern> + <pattern name="Print negative result only"> + <rule context="AAA"> + <assert test="BBB">BBB element is missing.</assert> + <assert test="@name">AAA misses attribute name.</assert> + </rule> + </pattern> +</schema> + diff --git a/test/schematron/zvon1_0.xml b/test/schematron/zvon1_0.xml new file mode 100644 index 00000000..d3ac3884 --- /dev/null +++ b/test/schematron/zvon1_0.xml @@ -0,0 +1,3 @@ +<AAA> + <BBB/> +</AAA> diff --git a/test/schematron/zvon1_1.xml b/test/schematron/zvon1_1.xml new file mode 100644 index 00000000..861c90ae --- /dev/null +++ b/test/schematron/zvon1_1.xml @@ -0,0 +1,3 @@ +<AAA> + <CCC/> +</AAA> |