The specific assert condition is evaluated differently by Xerces and Saxon validation engine in oxygenxml editor.
I have created a xsd schema (version 1.1) and the corresponded xml test file following the created schema. The xml file is correct according to XMLSpy 2019.
The validation of the test xml file in oxygenxml 21.0 fails if Xerces is used as validation schema.
At the same time the validation is successful if Saxon is used as validation engine.
Has the Xerces implementation issues with such particular assert clause
<xs:complexType>
<xs:sequence>
<xs:element name="scenario" type="Scenario"/>
<xs:element name="year" type="StressYear"/>
<xs:element name="position" type="STACreditPosition" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:assert test="every $pos in ./position satisfies not(($pos/geography lt $pos/preceding-sibling::position[1]/geography) or (($pos/geography eq $pos/preceding-sibling::position[1]/geography) and ($pos/creditAssetClass le $pos/preceding-sibling::position[1]/creditAssetClass)))"/>
</xs:complexType>
I expect that the validation is successful with Xerces engine.