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