• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<?xml version="1.0"?>
2<!-- This one tests the document access strategy for <import> -->
3<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
4	targetNamespace="http://FOO"
5	xmlns:foo="http://FOO"
6	xmlns:bar="http://BAR"
7	elementFormDefault="qualified">
8	<xsd:import namespace="http://BAR" />
9
10	<!-- This document does not exist. -->
11	<xsd:import namespace="http://BAR" schemaLocation="import1_0bc.imp" />
12	<!-- This document is ok. -->
13	<xsd:import namespace="http://BAR" schemaLocation="import1_0.imp" />
14	<!-- This document will be skipped, since a schema for the namespace
15	     "http://BAR" was already imported. -->
16	<xsd:import namespace="http://BAR" schemaLocation="import1_0b.imp" />
17
18
19	<xsd:element name="foo">
20		<xsd:complexType>
21			<xsd:sequence>
22				<xsd:element name="bar"/>
23				<xsd:element ref="bar:bar.A"/>
24				<!-- The reference cannot be resolved since
25				     "import1_0b.imp" was skipped -->
26				<xsd:element ref="bar:bar.B"/>
27			</xsd:sequence>
28		</xsd:complexType>
29	</xsd:element>
30</xsd:schema>