diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-17 07:15:29 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-17 07:15:29 +0200 |
commit | f0510d2f90467de8e8f260b47d79a9baaf9bef17 (patch) | |
tree | 0b9929946f06a9cbe9b9e8f2a7600dae4e048f79 /tests/schema/any |
Start tracking XSD with git
Diffstat (limited to 'tests/schema/any')
-rw-r--r-- | tests/schema/any/fail.xsd | 19 | ||||
-rw-r--r-- | tests/schema/any/test.xsd | 19 |
2 files changed, 38 insertions, 0 deletions
diff --git a/tests/schema/any/fail.xsd b/tests/schema/any/fail.xsd new file mode 100644 index 0000000..2eb9513 --- /dev/null +++ b/tests/schema/any/fail.xsd @@ -0,0 +1,19 @@ +<?xml version="1.0" ?> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:test="http://www.codesynthesis.com/xmlns/test" + targetNamespace="http://www.codesynthesis.com/xmlns/test"> + + <xsd:element name="foo" type="xsd:string"/> + + <xsd:complexType name="person"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:element ref="test:foo"/> + <xsd:any namespace="##any" processContents="strict"/> + <xsd:any namespace="http://www.codesynthesis.com/xmlns/test" processContents="strict"/> + </xsd:sequence> + </xsd:complexType> + +</xsd:schema> diff --git a/tests/schema/any/test.xsd b/tests/schema/any/test.xsd new file mode 100644 index 0000000..ff896fd --- /dev/null +++ b/tests/schema/any/test.xsd @@ -0,0 +1,19 @@ +<?xml version="1.0" ?> +<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema XMLSchema.xsd" + xmlns:test="http://www.codesynthesis.com/xmlns/test" + targetNamespace="http://www.codesynthesis.com/xmlns/test"> + + <xsd:complexType name="person"> + <xsd:sequence> + <xsd:element name="name" type="xsd:string"/> + <xsd:any namespace="##other" processContents="strict" maxOccurs="unbounded"/> + </xsd:sequence> + <xsd:attribute name="id" type="xsd:ID"/> + <xsd:anyAttribute namespace="##other" processContents="strict"/> + </xsd:complexType> + + <xsd:element name="person" type="test:person"/> + +</xsd:schema> |