1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-10-26 20:25:14 +03:00

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
This commit is contained in:
Daniel Veillard 2005-07-30 21:28:12 +00:00
parent e70375cd79
commit 22cce34629
4 changed files with 34 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sat Jul 30 17:26:58 EDT 2005 Daniel Veillard <daniel@veillard.com>
* test/schematron/*: a few first tests from Zvon unfortunately
with the old syntax
Sat Jul 30 17:08:07 EDT 2005 Daniel Veillard <daniel@veillard.com>
* schematron.c xmllint.c include/libxml/schematron.h: commiting

View File

@ -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>

View File

@ -0,0 +1,3 @@
<AAA>
<BBB/>
</AAA>

View File

@ -0,0 +1,3 @@
<AAA>
<CCC/>
</AAA>