File: issue_362_1.xsd

package info (click to toggle)
python-xmlschema 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,208 kB
  • sloc: python: 39,174; xml: 1,282; makefile: 36
file content (25 lines) | stat: -rw-r--r-- 816 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!--
A test for export schemas with crossed imports/includes and additional failing remote imports.
-->
<xs:schema
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:tns1="http://xmlschema.test/tns1"
  xmlns:tns2="http://xmlschema.test/tns2"
  targetNamespace="http://xmlschema.test/tns1">

  <xs:include schemaLocation="./dir1/../dir1/issue_362_1.xsd"/>
  <xs:import namespace="http://xmlschema.test/tns2" schemaLocation="http://xmlschema.test/tns2"/>
  <xs:import namespace="http://xmlschema.test/tns2" schemaLocation="dir1/dir2/issue_362_2.xsd"/>

  <xs:element name="root">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="tns1:item1" />
        <xs:element ref="tns2:item2" />
        <xs:element ref="tns2:item3" />
      </xs:sequence>
    </xs:complexType>
  </xs:element>

</xs:schema>