bug312957_1.xsd 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3. <xs:element name="family" type="family_type">
  4. <xs:key name="sibling_key">
  5. <xs:selector xpath="siblings/sibling"/>
  6. <xs:field xpath="@name"/>
  7. </xs:key>
  8. <xs:keyref name="sibling_key_ref" refer="sibling_key">
  9. <xs:selector xpath="sisters/sister"/>
  10. <xs:field xpath="@name"/>
  11. </xs:keyref>
  12. </xs:element>
  13. <xs:complexType name="family_type">
  14. <xs:sequence>
  15. <xs:element name="siblings" type="siblings_type" />
  16. <xs:element name="sisters" type="sisters_type" />
  17. </xs:sequence>
  18. <xs:attribute name="name" type="xs:string"/>
  19. </xs:complexType>
  20. <xs:complexType name="siblings_type">
  21. <xs:sequence>
  22. <xs:element name="sibling" type="sibling_type" minOccurs="0"
  23. maxOccurs="unbounded" />
  24. </xs:sequence>
  25. </xs:complexType>
  26. <xs:complexType name="sisters_type">
  27. <xs:sequence>
  28. <xs:element name="sister" type="sister_type" minOccurs="0"
  29. maxOccurs="unbounded" />
  30. </xs:sequence>
  31. </xs:complexType>
  32. <xs:complexType name="sibling_type">
  33. <xs:attribute name="name" type="xs:string"/>
  34. </xs:complexType>
  35. <xs:complexType name="sister_type">
  36. <xs:attribute name="name" type="xs:string"/>
  37. </xs:complexType>
  38. </xs:schema>