/bundles/plugins-trunk/XML/test_data/abstract_substitution/abstract_element.xsd

# · XML Schema · 27 lines · 22 code · 5 blank · 0 comment · 0 complexity · 5bf71eb26bed75b17b3b5a8dbf7834e4 MD5 · raw file

  1. <schema targetNamespace="http://www.example.com/Report"
  2. xmlns="http://www.w3.org/2001/XMLSchema"
  3. xmlns:r="http://www.example.com/Report"
  4. xmlns:xipo="http://www.example.com/IPO"
  5. elementFormDefault="qualified">
  6. <import namespace="http://www.example.com/IPO"/>
  7. <annotation>
  8. <documentation xml:lang="en">
  9. import comment from source.xsd
  10. </documentation>
  11. </annotation>
  12. <element name="purchaseReport">
  13. <complexType>
  14. <choice minOccurs="0" maxOccurs="unbounded">
  15. <element ref="xipo:comment"/>
  16. <!-- this one is in the Report namespace, to see how completion
  17. handles elements in undeclared namespace vs declared namespace -->
  18. <element name="reportTitle" type="string"/>
  19. </choice>
  20. </complexType>
  21. </element>
  22. </schema>