[XML Schema 1.1] Multiple <alternative> elements apply ... which one wins?

Hi Folks,

Suppose that several <alternative> elements apply. Which one will be used? 

Example: the below <Beverage> element has two <alternative> elements. If the value of its current-time attribute is 08:00:00 then both <alternative> elements apply. Which one will be used?

<xs:element name="Beverage" type="BeverageType">
    <xs:alternative test="@current-time le '12:00:00'" type="MorningBeverage" />
    <xs:alternative test="@current-time le '09:00:00'" type="EarlyMorningBeverage" />
</xs:element>

/Roger

Received on Wednesday, 1 July 2009 20:23:26 UTC