Hash :
800cbac3
Author :
Date :
2005-08-09T12:31:55
Fixed #312957 reported by Carol Hunter: streaming XPath states were not * xmlschemas.c: Fixed #312957 reported by Carol Hunter: streaming XPath states were not popped in every case, thus failed to resolve correctly for subsequent input. * test/schemas/bug312957* result/schemas/bug312957*: Added the test submitted by Carol Hunter.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
<?xml version="1.0" encoding="ISO-8859-1"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="family" type="family_type">
<xs:key name="sibling_key">
<xs:selector xpath="siblings/sibling"/>
<xs:field xpath="@name"/>
</xs:key>
<xs:keyref name="sibling_key_ref" refer="sibling_key">
<xs:selector xpath="sisters/sister"/>
<xs:field xpath="@name"/>
</xs:keyref>
</xs:element>
<xs:complexType name="family_type">
<xs:sequence>
<xs:element name="siblings" type="siblings_type" />
<xs:element name="sisters" type="sisters_type" />
</xs:sequence>
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
<xs:complexType name="siblings_type">
<xs:sequence>
<xs:element name="sibling" type="sibling_type" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="sisters_type">
<xs:sequence>
<xs:element name="sister" type="sister_type" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="sibling_type">
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
<xs:complexType name="sister_type">
<xs:attribute name="name" type="xs:string"/>
</xs:complexType>
</xs:schema>