25 lines
720 B
XML
25 lines
720 B
XML
<?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-A"
|
|
elementFormDefault="qualified">
|
|
|
|
<xs:import schemaLocation="import-case4b.xsd" namespace="http://example.com/xmlschema/ns-B"/>
|
|
|
|
<xs:element name="rootA" type="a:rootType"/>
|
|
|
|
<xs:complexType name="rootType">
|
|
<xs:sequence>
|
|
<xs:element ref="b:rootB" minOccurs="0" />
|
|
</xs:sequence>
|
|
</xs:complexType>
|
|
|
|
</xs:schema>
|
|
|