File: import-case4b.xsd

package info (click to toggle)
python-xmlschema 4.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,208 kB
  • sloc: python: 39,174; xml: 1,282; makefile: 36
file content (24 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?xml version="1.0" encoding="utf-8"?>
<!--
  An valid import case: two namespaces, each one with a global element that
  can be used as valid root element for XML instances.
  -->
<xs:schema
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:a="http://example.com/xmlschema/ns-A"
  xmlns:b="http://example.com/xmlschema/ns-B"
  targetNamespace="http://example.com/xmlschema/ns-B"
  elementFormDefault="qualified">

  <xs:import schemaLocation="import-case4a.xsd" namespace="http://example.com/xmlschema/ns-A"/>

  <xs:element name="rootB" type="b:rootType"/>

  <xs:complexType name="rootType">
    <xs:sequence>
      <xs:element ref="a:rootA" minOccurs="0" />
    </xs:sequence>
  </xs:complexType>

</xs:schema>