<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" is-XPath2="false" name="OrderExpr" featureOwner="IBM and Frans Englich">
   <GroupInfo>
      <title>Ordered and Unordered Expressions</title>
      <description>Tests involving "Ordered" and/or "unordered"</description>
   </GroupInfo>
   <test-case is-XPath2="false" name="Orderexpr-1" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>Path expression ordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-1" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">partlist</input-file>
      <output-file role="principal" compare="Fragment">Orderexpr-1.xml</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-2" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>Path expression unordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-2" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">partlist</input-file>
      <output-file role="principal" compare="Fragment">Orderexpr-1.xml</output-file>
      <output-file role="principal" compare="Fragment">Orderexpr-2.xml</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-5" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>Position predicate ordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-5" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">partlist</input-file>
      <output-file role="principal" compare="Fragment">Orderexpr-3.xml</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-6" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>Position predicate unordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-6" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">partlist</input-file>
      <output-file role="principal" compare="Fragment">Orderexpr-3.xml</output-file>
      <output-file role="principal" compare="Fragment">Orderexpr-4.xml</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-9" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>Union ordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-9" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">partlist</input-file>
      <output-file role="principal" compare="Fragment">Orderexpr-9.xml</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-10" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>Union unordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-10" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">partlist</input-file>
      <output-file role="principal" compare="Fragment">Orderexpr-9.xml</output-file>
      <output-file role="principal" compare="Fragment">Orderexpr-10.xml</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-11" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>Intersect ordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-11" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">partlist</input-file>
      <output-file role="principal" compare="Fragment">Orderexpr-9.xml</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-12" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>Intersect unordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-12" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">partlist</input-file>
      <output-file role="principal" compare="Fragment">Orderexpr-9.xml</output-file>
      <output-file role="principal" compare="Fragment">Orderexpr-10.xml</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-13" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>Except ordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-13" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">partlist</input-file>
      <output-file role="principal" compare="Fragment">Orderexpr-9.xml</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-14" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>Except unordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-14" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">partlist</input-file>
      <output-file role="principal" compare="Fragment">Orderexpr-9.xml</output-file>
      <output-file role="principal" compare="Fragment">Orderexpr-10.xml</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-15" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>fn:subsequence ordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-15" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">Orderexpr-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-16" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>fn:subsequence unordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-16" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">Orderexpr-15.txt</output-file>
      <output-file role="principal" compare="Text">Orderexpr-16.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-17" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>fn:reverse ordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-17" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">Orderexpr-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-18" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>fn:reverse unordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-18" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">Orderexpr-15.txt</output-file>
      <output-file role="principal" compare="Text">Orderexpr-16.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-19" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>FLWOR ordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-19" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">partlist</input-file>
      <output-file role="principal" compare="Text">Orderexpr-19.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="Orderexpr-20" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Andreas Behm">
      <description>FLWOR unordered.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="Orderexpr-20" date="2005-10-05"/>
      <input-file role="principal-data" variable="input-context">partlist</input-file>
      <output-file role="principal" compare="Text">Orderexpr-19.txt</output-file>
      <output-file role="principal" compare="Text">Orderexpr-20.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="orderedunorderedexpr-1" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Carmelo Montanez">
      <description>Ordered expression used with and if expression.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="orderedunorderedexpr-1" date="2005-12-09"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">orderedunorderedexpr-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="orderedunorderedexpr-2" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Carmelo Montanez">
      <description>Ordered expression used with an "or" expression ("and" operator).</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="orderedunorderedexpr-2" date="2005-12-09"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">orderedunorderedexpr-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="orderedunorderedexpr-3" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Carmelo Montanez">
      <description>Ordered expression used with an "or" expression ("or" operator).</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="orderedunorderedexpr-3" date="2005-12-09"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">orderedunorderedexpr-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="orderedunorderedexpr-4" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Carmelo Montanez">
      <description>Ordered expression used with a quantify expression ("some" operator).</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="orderedunorderedexpr-4" date="2005-12-09"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">orderedunorderedexpr-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="orderedunorderedexpr-5" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Carmelo Montanez">
      <description>Ordered expression used with a quantify expression ("every" operator).</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="orderedunorderedexpr-5" date="2005-12-09"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">orderedunorderedexpr-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="orderedunorderedexpr-6" FilePath="Expressions/OrderExpr/" scenario="standard" Creator="Carmelo Montanez">
      <description>Ordered expression used with a typeswitch expression.</description>
      <spec-citation spec="XQuery" section-number="3.9" section-title="Ordered and Unordered Expressions" section-pointer="id-unordered-expressions"/>
      <query name="orderedunorderedexpr-6" date="2005-12-09"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">orderedunorderedexpr-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-OrderExpr-1" FilePath="Expressions/OrderExpr/" scenario="parse-error">
      <description>A nested expression must be present when 'ordered' is used.</description>
      <query name="K-OrderExpr-1" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0003</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-OrderExpr-2" FilePath="Expressions/OrderExpr/" scenario="parse-error">
      <description>A nested expression must be present when 'unordered' is used.</description>
      <query name="K-OrderExpr-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0003</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-OrderExpr-3" FilePath="Expressions/OrderExpr/" scenario="standard">
      <description>A simple test of 'ordered{}'.</description>
      <query name="K-OrderExpr-3" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-OrderExpr-3.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-OrderExpr-4" FilePath="Expressions/OrderExpr/" scenario="standard">
      <description>A simple test of 'unordered{}'.</description>
      <query name="K-OrderExpr-4" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-OrderExpr-4.txt</output-file>
   </test-case>
</test-group>