blob: 309139c06f51931b8c074115d4bc3a653b86a7c9 [file] [log] [blame]
William M. Brack2f2a6632004-08-20 23:09:47 +00001<?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" />
Kasimier T. Buchcik91b23142005-09-12 19:44:00 +00009
William M. Brack2f2a6632004-08-20 23:09:47 +000010 <!-- 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"/>
Kasimier T. Buchcik91b23142005-09-12 19:44:00 +000024 <!-- The reference cannot be resolved since
25 "import1_0b.imp" was skipped -->
William M. Brack2f2a6632004-08-20 23:09:47 +000026 <xsd:element ref="bar:bar.B"/>
27 </xsd:sequence>
28 </xsd:complexType>
29 </xsd:element>
30</xsd:schema>