import1_0.xsd 1.0 KB

123456789101112131415161718192021222324252627282930
  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. <!-- This document does not exist. -->
  10. <xsd:import namespace="http://BAR" schemaLocation="import1_0bc.imp" />
  11. <!-- This document is ok. -->
  12. <xsd:import namespace="http://BAR" schemaLocation="import1_0.imp" />
  13. <!-- This document will be skipped, since a schema for the namespace
  14. "http://BAR" was already imported. -->
  15. <xsd:import namespace="http://BAR" schemaLocation="import1_0b.imp" />
  16. <xsd:element name="foo">
  17. <xsd:complexType>
  18. <xsd:sequence>
  19. <xsd:element name="bar"/>
  20. <xsd:element ref="bar:bar.A"/>
  21. <!-- The reference cannot be resolved since
  22. "import1_0b.imp" was skipped -->
  23. <xsd:element ref="bar:bar.B"/>
  24. </xsd:sequence>
  25. </xsd:complexType>
  26. </xsd:element>
  27. </xsd:schema>