Debian Codegraph @

tests/test_cases/features/namespaces/import-case4a.xsd

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 An valid import case: two namespaces, each one with a global element that
4 can be used as valid root element for XML instances.
5 -->
6 <xs:schema
7 xmlns:xs="http://www.w3.org/2001/XMLSchema"
8 xmlns:a="http://example.com/xmlschema/ns-A"
9 xmlns:b="http://example.com/xmlschema/ns-B"
10 targetNamespace="http://example.com/xmlschema/ns-A"
11 elementFormDefault="qualified">
12
13 <xs:import schemaLocation="import-case4b.xsd" namespace="http://example.com/xmlschema/ns-B"/>
14
15 <xs:element name="rootA" type="a:rootType"/>
16
17 <xs:complexType name="rootType">
18 <xs:sequence>
19 <xs:element ref="b:rootB" minOccurs="0" />
20 </xs:sequence>
21 </xs:complexType>
22
23 </xs:schema>
24