William M. Brack | 2f2a663 | 2004-08-20 23:09:47 +0000 | [diff] [blame] | 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" /> |
Kasimier T. Buchcik | 91b2314 | 2005-09-12 19:44:00 +0000 | [diff] [blame] | 9 | |
William M. Brack | 2f2a663 | 2004-08-20 23:09:47 +0000 | [diff] [blame] | 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"/> |
Kasimier T. Buchcik | 91b2314 | 2005-09-12 19:44:00 +0000 | [diff] [blame] | 24 | <!-- The reference cannot be resolved since |
| 25 | "import1_0b.imp" was skipped --> |
William M. Brack | 2f2a663 | 2004-08-20 23:09:47 +0000 | [diff] [blame] | 26 | <xsd:element ref="bar:bar.B"/> |
| 27 | </xsd:sequence> |
| 28 | </xsd:complexType> |
| 29 | </xsd:element> |
| 30 | </xsd:schema> |