1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2024-12-27 03:21:26 +03:00

check all the namespace support was actually correct based on tutorial

* test/relaxng/* result/relaxng/*: check all the namespace support
  was actually correct based on tutorial section 10.
Daniel
This commit is contained in:
Daniel Veillard 2003-02-02 16:02:55 +00:00
parent e2a5a08b0f
commit fc1a4503fb
77 changed files with 261 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Sun Feb 2 17:01:43 CET 2003 Daniel Veillard <daniel@veillard.com>
* test/relaxng/* result/relaxng/*: check all the namespace support
was actually correct based on tutorial section 10.
Sun Feb 2 15:33:38 CET 2003 Daniel Veillard <daniel@veillard.com>
* relaxng: include seems to work okay now

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_10_1.xml validates

View File

@ -0,0 +1,4 @@
xmlRelaxNGValidateDefinition(): validated name : 0
xmlRelaxNGValidateDefinition(): validated email : 0
xmlRelaxNGValidateDefinition(): validated card : 0
xmlRelaxNGValidateDefinition(): validated addressBook : 0

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_1_1.xml validates

View File

@ -0,0 +1,2 @@
xmlRelaxNGValidateDefinition(): validated empty
xmlRelaxNGValidateDefinition(): validated foo : 0

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_1_2.xml validates

View File

@ -0,0 +1,2 @@
xmlRelaxNGValidateDefinition(): validated empty
xmlRelaxNGValidateDefinition(): validated foo : 0

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_1_3.xml validates

View File

@ -0,0 +1,2 @@
xmlRelaxNGValidateDefinition(): validated empty
xmlRelaxNGValidateDefinition(): validated foo : 0

View File

@ -0,0 +1,3 @@
Expecting a namespace for element foo
extra data on the document
./test/relaxng/tutor10_1_4.xml validation generated an internal error

View File

@ -0,0 +1,2 @@
error detected at relaxng.c:4741
error detected at relaxng.c:5027

View File

@ -0,0 +1,3 @@
Expecting element foo has wrong namespace: expecting http://www.example.com
extra data on the document
./test/relaxng/tutor10_1_5.xml validation generated an internal error

View File

@ -0,0 +1,2 @@
error detected at relaxng.c:4746
error detected at relaxng.c:5027

View File

@ -0,0 +1,3 @@
Expecting element foo has wrong namespace: expecting http://www.example.com
extra data on the document
./test/relaxng/tutor10_1_6.xml validation generated an internal error

View File

@ -0,0 +1,2 @@
error detected at relaxng.c:4746
error detected at relaxng.c:5027

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_2_1.xml validates

View File

@ -0,0 +1,2 @@
xmlRelaxNGValidateDefinition(): validated empty
xmlRelaxNGValidateDefinition(): validated foo : 0

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_2_2.xml validates

View File

@ -0,0 +1,2 @@
xmlRelaxNGValidateDefinition(): validated empty
xmlRelaxNGValidateDefinition(): validated foo : 0

View File

@ -0,0 +1,3 @@
Expecting no namespace for element foo
extra data on the document
./test/relaxng/tutor10_2_3.xml validation generated an internal error

View File

@ -0,0 +1,2 @@
error detected at relaxng.c:4753
error detected at relaxng.c:5027

View File

@ -0,0 +1,3 @@
Expecting no namespace for element foo
extra data on the document
./test/relaxng/tutor10_2_4.xml validation generated an internal error

View File

@ -0,0 +1,2 @@
error detected at relaxng.c:4753
error detected at relaxng.c:5027

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_3_1.xml validates

View File

@ -0,0 +1,4 @@
xmlRelaxNGValidateDefinition(): validated name : 0
xmlRelaxNGValidateDefinition(): validated email : 0
xmlRelaxNGValidateDefinition(): validated card : 0
xmlRelaxNGValidateDefinition(): validated addressBook : 0

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_4_1.xml validates

View File

@ -0,0 +1,4 @@
xmlRelaxNGValidateDefinition(): validated name : 0
xmlRelaxNGValidateDefinition(): validated email : 0
xmlRelaxNGValidateDefinition(): validated card : 0
xmlRelaxNGValidateDefinition(): validated addressBook : 0

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_5_1.xml validates

View File

@ -0,0 +1,4 @@
xmlRelaxNGValidateDefinition(): validated name : 0
xmlRelaxNGValidateDefinition(): validated email : 0
xmlRelaxNGValidateDefinition(): validated card : 0
xmlRelaxNGValidateDefinition(): validated addressBook : 0

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_6_1.xml validates

View File

@ -0,0 +1,4 @@
xmlRelaxNGValidateDefinition(): validated name : 0
xmlRelaxNGValidateDefinition(): validated email : 0
xmlRelaxNGValidateDefinition(): validated card : 0
xmlRelaxNGValidateDefinition(): validated addressBook : 0

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_7_1.xml validates

View File

@ -0,0 +1,4 @@
xmlRelaxNGValidateAttribute(email): 0
xmlRelaxNGValidateAttribute(name): 0
xmlRelaxNGValidateDefinition(): validated card : 0
xmlRelaxNGValidateDefinition(): validated addressBook : 0

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_7_2.xml validates

View File

@ -0,0 +1,4 @@
xmlRelaxNGValidateAttribute(email): 0
xmlRelaxNGValidateAttribute(name): 0
xmlRelaxNGValidateDefinition(): validated card : 0
xmlRelaxNGValidateDefinition(): validated addressBook : 0

View File

@ -0,0 +1,2 @@
Extra content for element addressBook
./test/relaxng/tutor10_7_3.xml validation generated an internal error

View File

@ -0,0 +1,5 @@
xmlRelaxNGValidateAttribute(email): -1
xmlRelaxNGValidateAttribute(name): -1
xmlRelaxNGValidateDefinition(): validated card : -1
error detected at relaxng.c:4781
xmlRelaxNGValidateDefinition(): validated addressBook : -1

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_8_1.xml validates

View File

@ -0,0 +1,4 @@
xmlRelaxNGValidateAttribute(email): 0
xmlRelaxNGValidateAttribute(name): 0
xmlRelaxNGValidateDefinition(): validated card : 0
xmlRelaxNGValidateDefinition(): validated addressBook : 0

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_8_2.xml validates

View File

@ -0,0 +1,4 @@
xmlRelaxNGValidateAttribute(email): 0
xmlRelaxNGValidateAttribute(name): 0
xmlRelaxNGValidateDefinition(): validated card : 0
xmlRelaxNGValidateDefinition(): validated addressBook : 0

View File

@ -0,0 +1,2 @@
Extra content for element addressBook
./test/relaxng/tutor10_8_3.xml validation generated an internal error

View File

@ -0,0 +1,5 @@
xmlRelaxNGValidateAttribute(email): -1
xmlRelaxNGValidateAttribute(name): -1
xmlRelaxNGValidateDefinition(): validated card : -1
error detected at relaxng.c:4781
xmlRelaxNGValidateDefinition(): validated addressBook : -1

View File

@ -0,0 +1 @@
./test/relaxng/tutor10_9_1.xml validates

View File

@ -0,0 +1,4 @@
xmlRelaxNGValidateDefinition(): validated name : 0
xmlRelaxNGValidateDefinition(): validated email : 0
xmlRelaxNGValidateDefinition(): validated card : 0
xmlRelaxNGValidateDefinition(): validated addressBook : 0

View File

@ -0,0 +1,4 @@
<element name="foo" ns="http://www.example.com"
xmlns="http://relaxng.org/ns/structure/1.0">
<empty/>
</element>

View File

@ -0,0 +1,13 @@
<element name="addressBook" ns="http://www.example.com/addressBook"
xmlns="http://relaxng.org/ns/structure/1.0">
<zeroOrMore>
<element name="card" ns="http://www.example.com/addressBook">
<element name="name" ns="http://www.example.com/address">
<text/>
</element>
<element name="email" ns="http://www.example.com/address">
<text/>
</element>
</element>
</zeroOrMore>
</element>

View File

@ -0,0 +1,5 @@
<a:addressBook xmlns:a="http://www.example.com/addressBook">
<a:card xmlns="http://www.example.com/address">
<name>foo</name><email>bar</email>
</a:card>
</a:addressBook>

View File

@ -0,0 +1 @@
<foo xmlns="http://www.example.com"/>

View File

@ -0,0 +1 @@
<e:foo xmlns:e="http://www.example.com"/>

View File

@ -0,0 +1 @@
<example:foo xmlns:example="http://www.example.com"/>

View File

@ -0,0 +1 @@
<foo/>

View File

@ -0,0 +1 @@
<e:foo xmlns:e="http://WWW.EXAMPLE.COM"/>

View File

@ -0,0 +1 @@
<example:foo xmlns:example="http://www.example.net"/>

View File

@ -0,0 +1,3 @@
<element name="foo" ns="" xmlns="http://relaxng.org/ns/structure/1.0">
<empty/>
</element>

View File

@ -0,0 +1 @@
<foo xmlns=""/>

View File

@ -0,0 +1 @@
<foo/>

View File

@ -0,0 +1 @@
<foo xmlns="http://www.example.com"/>

View File

@ -0,0 +1 @@
<e:foo xmlns:e="http://www.example.com"/>

View File

@ -0,0 +1,12 @@
<element name="addressBook" xmlns="http://relaxng.org/ns/structure/1.0">
<zeroOrMore>
<element name="card">
<element name="name">
<text/>
</element>
<element name="email">
<text/>
</element>
</element>
</zeroOrMore>
</element>

View File

@ -0,0 +1,3 @@
<addressBook>
<card><name>foo</name><email>bar</email></card>
</addressBook>

View File

@ -0,0 +1,12 @@
<element name="addressBook" ns="" xmlns="http://relaxng.org/ns/structure/1.0">
<zeroOrMore>
<element name="card" ns="">
<element name="name" ns="">
<text/>
</element>
<element name="email" ns="">
<text/>
</element>
</element>
</zeroOrMore>
</element>

View File

@ -0,0 +1,3 @@
<addressBook>
<card><name>foo</name><email>bar</email></card>
</addressBook>

View File

@ -0,0 +1,13 @@
<element name="addressBook" ns="http://www.example.com"
xmlns="http://relaxng.org/ns/structure/1.0">
<zeroOrMore>
<element name="card">
<element name="name">
<text/>
</element>
<element name="email">
<text/>
</element>
</element>
</zeroOrMore>
</element>

View File

@ -0,0 +1,3 @@
<addressBook xmlns="http://www.example.com">
<card><name>foo</name><email>bar</email></card>
</addressBook>

View File

@ -0,0 +1,13 @@
<element name="addressBook" ns="http://www.example.com"
xmlns="http://relaxng.org/ns/structure/1.0">
<zeroOrMore>
<element name="card" ns="http://www.example.com">
<element name="name" ns="http://www.example.com">
<text/>
</element>
<element name="email" ns="http://www.example.com">
<text/>
</element>
</element>
</zeroOrMore>
</element>

View File

@ -0,0 +1,3 @@
<addressBook xmlns="http://www.example.com">
<card><name>foo</name><email>bar</email></card>
</addressBook>

View File

@ -0,0 +1,9 @@
<element name="addressBook" ns="http://www.example.com"
xmlns="http://relaxng.org/ns/structure/1.0">
<zeroOrMore>
<element name="card">
<attribute name="name"/>
<attribute name="email"/>
</element>
</zeroOrMore>
</element>

View File

@ -0,0 +1,3 @@
<addressBook xmlns="http://www.example.com">
<card name="John Smith" email="js@example.com"/>
</addressBook>

View File

@ -0,0 +1,3 @@
<example:addressBook xmlns:example="http://www.example.com">
<example:card name="John Smith" email="js@example.com"/>
</example:addressBook>

View File

@ -0,0 +1,3 @@
<example:addressBook xmlns:example="http://www.example.com">
<example:card example:name="John Smith" example:email="js@example.com"/>
</example:addressBook>

View File

@ -0,0 +1,9 @@
<element name="addressBook" ns="http://www.example.com"
xmlns="http://relaxng.org/ns/structure/1.0">
<zeroOrMore>
<element name="card" ns="http://www.example.com">
<attribute name="name" ns=""/>
<attribute name="email" ns=""/>
</element>
</zeroOrMore>
</element>

View File

@ -0,0 +1,3 @@
<addressBook xmlns="http://www.example.com">
<card name="John Smith" email="js@example.com"/>
</addressBook>

View File

@ -0,0 +1,3 @@
<example:addressBook xmlns:example="http://www.example.com">
<example:card name="John Smith" email="js@example.com"/>
</example:addressBook>

View File

@ -0,0 +1,3 @@
<example:addressBook xmlns:example="http://www.example.com">
<example:card example:name="John Smith" example:email="js@example.com"/>
</example:addressBook>

View File

@ -0,0 +1,14 @@
<element name="ab:addressBook" xmlns:ab="http://www.example.com/addressBook"
xmlns:a="http://www.example.com/address"
xmlns="http://relaxng.org/ns/structure/1.0">
<zeroOrMore>
<element name="ab:card">
<element name="a:name">
<text/>
</element>
<element name="a:email">
<text/>
</element>
</element>
</zeroOrMore>
</element>

View File

@ -0,0 +1,5 @@
<a:addressBook xmlns:a="http://www.example.com/addressBook">
<a:card xmlns="http://www.example.com/address">
<name>foo</name><email>bar</email>
</a:card>
</a:addressBook>