mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-27 18:50:07 +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:
parent
e70375cd79
commit
22cce34629
@ -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
|
||||
|
23
test/schematron/zvon1_0.sct
Normal file
23
test/schematron/zvon1_0.sct
Normal 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>
|
||||
|
3
test/schematron/zvon1_0.xml
Normal file
3
test/schematron/zvon1_0.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<AAA>
|
||||
<BBB/>
|
||||
</AAA>
|
3
test/schematron/zvon1_1.xml
Normal file
3
test/schematron/zvon1_1.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<AAA>
|
||||
<CCC/>
|
||||
</AAA>
|
Loading…
x
Reference in New Issue
Block a user