diff options
author | Mike Hommey <glandium@debian.org> | 2005-03-27 13:13:58 +0000 |
---|---|---|
committer | Mike Hommey <glandium@debian.org> | 2005-03-27 13:13:58 +0000 |
commit | 50e5b428562964b1eb2f876370058b34b47c5e90 (patch) | |
tree | c66bcae6dbbce07128ee881353ff60090524462c /test/schemas | |
parent | a7457388701e6ccba9091ba3ec09505dc903b758 (diff) | |
download | libxml2-50e5b428562964b1eb2f876370058b34b47c5e90.tar.gz |
Load /tmp/tmp.XJZ6qc/libxml2-2.6.18 intoupstream/2.6.18
packages/libxml2/branches/upstream/current.
Diffstat (limited to 'test/schemas')
-rw-r--r-- | test/schemas/annot-err_0.xsd | 8 | ||||
-rw-r--r-- | test/schemas/bug167754_0.xml | 12 | ||||
-rw-r--r-- | test/schemas/bug167754_0.xsd | 29 | ||||
-rw-r--r-- | test/schemas/element-err_0.xsd | 4 |
4 files changed, 47 insertions, 6 deletions
diff --git a/test/schemas/annot-err_0.xsd b/test/schemas/annot-err_0.xsd index 70df4f7..94d818c 100644 --- a/test/schemas/annot-err_0.xsd +++ b/test/schemas/annot-err_0.xsd @@ -4,13 +4,13 @@ xmlns:goo="http://GOO" xmlns:but="http://BUT"> <xsd:element name="foo" xml:lang="hhh"> - <xsd:annotation id="?" death="is a good entertainer" but:such="is life"> + <xsd:annotation id="id1" death="is a good entertainer" but:such="is life"> I shouldn't do this here... - <xsd:appinfo id="?" source="somewhere" + <xsd:appinfo id="id2" source="somewhere" goo:fun="bag" fun="another fun-bag"> weeelll </xsd:appinfo> - <xsd:documentation xml:lang="*" id="?" source="anywhere" + <xsd:documentation xml:lang="*" id="id3" source="anywhere" goo:mothers="of invention" mothers="don't do your dishes"> hmmmmmm </xsd:documentation> @@ -18,4 +18,4 @@ </xsd:annotation> </xsd:element> -</xsd:schema>
\ No newline at end of file +</xsd:schema> diff --git a/test/schemas/bug167754_0.xml b/test/schemas/bug167754_0.xml new file mode 100644 index 0000000..e5ec7d7 --- /dev/null +++ b/test/schemas/bug167754_0.xml @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<test xmlns="http://www.example.com/Test" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.example.com/Test bug167754.xsd"> + <child> + <foo/> + </child> + <child> + <foo/> + <joe/> + </child> +</test> diff --git a/test/schemas/bug167754_0.xsd b/test/schemas/bug167754_0.xsd new file mode 100644 index 0000000..e7883d2 --- /dev/null +++ b/test/schemas/bug167754_0.xsd @@ -0,0 +1,29 @@ +<?xml version="1.0"?> +<xsd:schema + xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:target="http://www.example.com/Test" + targetNamespace="http://www.example.com/Test" + version="1.0" + elementFormDefault="qualified" > + + <xsd:element name="foo" /> + <xsd:element name="bar" /> + <xsd:element name="joe" /> + + <xsd:complexType name="dominik"> + <xsd:all> + <xsd:element minOccurs="0" ref="target:foo" /> + <xsd:element minOccurs="0" ref="target:bar" /> + <xsd:element minOccurs="0" ref="target:joe" /> + </xsd:all> + </xsd:complexType> + + <xsd:element name="test"> + <xsd:complexType> + <xsd:sequence> + <xsd:element maxOccurs="unbounded" name="child" type="target:dominik" /> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + +</xsd:schema>
\ No newline at end of file diff --git a/test/schemas/element-err_0.xsd b/test/schemas/element-err_0.xsd index a5c696f..92604c8 100644 --- a/test/schemas/element-err_0.xsd +++ b/test/schemas/element-err_0.xsd @@ -17,7 +17,7 @@ <xsd:sequence> <xsd:element ref="foo:bar" name="myomy" minOccurs="3" maxOccurs="2" abstract="true" block="flute" - form="qualified" id="b12" nillable="true" + form="qualified" id="b13" nillable="true" substitutionGroup="foo:bar" type="xsd:string" default="Jimi" fixed="Hendrix" final="fantasy"> <xsd:complexType/> @@ -25,7 +25,7 @@ </xsd:element> <xsd:element name="myomy" maxOccurs="0" abstract="true" block="flute" - form="qualified" id="b12" nillable="true" + form="qualified" id="b14" nillable="true" substitutionGroup="foo:bar" type="xsd:string" default="Jimi" fixed="Hendrix" final="fantasy"> <xsd:complexType/> |