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

# · XML Schema · 22 lines · 17 code · 5 blank · 0 comment · 0 complexity · c7285113619d409dd1c0875629af6f54 MD5 · raw file

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <schema xmlns="http://www.w3.org/2001/XMLSchema"
  3. targetNamespace="http://cars.example.com/schema"
  4. xmlns:target="http://cars.example.com/schema">
  5. <complexType name="Vehicle" abstract="true"/>
  6. <complexType name="Car">
  7. <complexContent>
  8. <extension base="target:Vehicle"/>
  9. </complexContent>
  10. </complexType>
  11. <complexType name="Plane">
  12. <complexContent>
  13. <extension base="target:Vehicle"/>
  14. </complexContent>
  15. </complexType>
  16. <element name="transport" type="target:Vehicle"/>
  17. </schema>