bug455953_0.xsd 969 B

1234567891011121314151617181920212223242526272829
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. targetNamespace="http://www.tempuri.org/MainSchema"
  4. xmlns:tns="http://www.tempuri.org/MainSchema"
  5. xmlns:ns="http://www.tempuri.org/ImportedSchema"
  6. elementFormDefault="qualified" >
  7. <xs:import namespace="http://www.tempuri.org/ImportedSchema" schemaLocation="./import-455953.xsd" />
  8. <xs:complexType name="MyMainType">
  9. <xs:sequence>
  10. <xs:element name="MainA">
  11. <xs:complexType>
  12. <xs:attribute name="MainID" type="xs:int"/>
  13. </xs:complexType>
  14. </xs:element>
  15. <xs:element ref="ns:AnotherElement" />
  16. </xs:sequence>
  17. </xs:complexType>
  18. <xs:element name="MainElement" type="tns:MyMainType">
  19. <xs:key name="MainKey" >
  20. <xs:selector xpath="tns:MainA" />
  21. <xs:field xpath="@MainID" />
  22. </xs:key>
  23. </xs:element>
  24. </xs:schema>