diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2002-04-20 17:38:48 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2002-04-20 17:38:48 +0000 |
commit | 441bc32e3167ed55df415500e3a22eda4eec1ac6 (patch) | |
tree | c409268391e48811125121186c170929dc7fc238 /test | |
parent | 8a001f62c195f956c7655df7464ff753b28bc957 (diff) | |
download | android_external_libxml2-441bc32e3167ed55df415500e3a22eda4eec1ac6.tar.gz android_external_libxml2-441bc32e3167ed55df415500e3a22eda4eec1ac6.tar.bz2 android_external_libxml2-441bc32e3167ed55df415500e3a22eda4eec1ac6.zip |
implementing xs:all with minOccurs = 0 added more tests covering xs:all
* xmlregexp.c xmlschemas.c include/libxml/xmlautomata.h:
implementing xs:all with minOccurs = 0
* tes/schemas/* result/schemas/*: added more tests covering
xs:all
Daniel
Diffstat (limited to 'test')
-rw-r--r-- | test/schemas/all_0.xml | 1 | ||||
-rw-r--r-- | test/schemas/all_0.xsd | 12 | ||||
-rw-r--r-- | test/schemas/all_1.xml | 2 | ||||
-rw-r--r-- | test/schemas/all_1.xsd | 12 | ||||
-rw-r--r-- | test/schemas/all_2.xml | 1 | ||||
-rw-r--r-- | test/schemas/all_3.xml | 1 | ||||
-rw-r--r-- | test/schemas/all_4.xml | 1 | ||||
-rw-r--r-- | test/schemas/all_5.xml | 1 |
8 files changed, 31 insertions, 0 deletions
diff --git a/test/schemas/all_0.xml b/test/schemas/all_0.xml new file mode 100644 index 00000000..fb5b0fae --- /dev/null +++ b/test/schemas/all_0.xml @@ -0,0 +1 @@ +<doc><a/><b/><c/></doc> diff --git a/test/schemas/all_0.xsd b/test/schemas/all_0.xsd new file mode 100644 index 00000000..55c04eec --- /dev/null +++ b/test/schemas/all_0.xsd @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <xsd:element name="doc"> + <xsd:complexType> + <xsd:all minOccurs="1"> + <xsd:element name="a"/> + <xsd:element name="b"/> + <xsd:element name="c"/> + </xsd:all> + </xsd:complexType> + </xsd:element> +</xsd:schema> diff --git a/test/schemas/all_1.xml b/test/schemas/all_1.xml new file mode 100644 index 00000000..41d797e4 --- /dev/null +++ b/test/schemas/all_1.xml @@ -0,0 +1,2 @@ +<doc><b/><c/><a/></doc> + diff --git a/test/schemas/all_1.xsd b/test/schemas/all_1.xsd new file mode 100644 index 00000000..bc386f30 --- /dev/null +++ b/test/schemas/all_1.xsd @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> + <xsd:element name="doc"> + <xsd:complexType> + <xsd:all minOccurs="0"> + <xsd:element name="a"/> + <xsd:element name="b"/> + <xsd:element name="c"/> + </xsd:all> + </xsd:complexType> + </xsd:element> +</xsd:schema> diff --git a/test/schemas/all_2.xml b/test/schemas/all_2.xml new file mode 100644 index 00000000..cc1580b5 --- /dev/null +++ b/test/schemas/all_2.xml @@ -0,0 +1 @@ +<doc><b/><a/><c/></doc> diff --git a/test/schemas/all_3.xml b/test/schemas/all_3.xml new file mode 100644 index 00000000..c011b3fa --- /dev/null +++ b/test/schemas/all_3.xml @@ -0,0 +1 @@ +<doc><a/><b/></doc> diff --git a/test/schemas/all_4.xml b/test/schemas/all_4.xml new file mode 100644 index 00000000..afa807c2 --- /dev/null +++ b/test/schemas/all_4.xml @@ -0,0 +1 @@ +<doc></doc> diff --git a/test/schemas/all_5.xml b/test/schemas/all_5.xml new file mode 100644 index 00000000..d68f3216 --- /dev/null +++ b/test/schemas/all_5.xml @@ -0,0 +1 @@ +<doc><a/><b/><a/></doc> |