summaryrefslogtreecommitdiff
path: root/xsd/tests/schema/any/fail.xsd
blob: 2eb951393395b7312d0ebb28049a1e6ccaa9d640 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>