<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" name="RoundEvenFunc" featureOwner="Frans Englich">
   <GroupInfo>
      <title>fn:round-half-to-even</title>
      <description/>
   </GroupInfo>
   <test-case is-XPath2="true" name="fn-round-half-to-evenint1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:int(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenint1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenint1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenint1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:int(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenint1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenint1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenint1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:int(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenint1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenint1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenintg1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:integer(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenintg1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenintg1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenintg1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:integer(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenintg1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenintg1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenintg1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:integer(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenintg1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenintg1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evendec1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:decimal(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evendec1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evendec1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evendec1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:decimal(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evendec1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evendec1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evendec1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:decimal(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evendec1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evendec1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evendbl1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:double(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evendbl1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evendbl1args-1.txt</output-file>
      <expected-error>FOCA0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evendbl1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:double(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evendbl1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evendbl1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evendbl1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:double(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evendbl1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evendbl1args-3.txt</output-file>
      <expected-error>FOCA0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenflt1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:float(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenflt1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenflt1args-1.txt</output-file>
      <expected-error>FOCA0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenflt1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:float(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenflt1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenflt1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenflt1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:float(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenflt1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenflt1args-3.txt</output-file>
      <expected-error>FOCA0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenlng1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:long(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenlng1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenlng1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenlng1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:long(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenlng1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenlng1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenlng1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:long(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenlng1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenlng1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenusht1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:unsignedShort(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenusht1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenusht1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenusht1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:unsignedShort(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenusht1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenusht1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenusht1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:unsignedShort(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenusht1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenusht1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evennint1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:negativeInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evennint1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evennint1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evennint1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:negativeInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evennint1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evennint1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evennint1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:negativeInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evennint1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evennint1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenpint1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:positiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenpint1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenpint1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenpint1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:positiveInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenpint1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenpint1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenpint1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:positiveInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenpint1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenpint1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenulng1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:unsignedLong(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenulng1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenulng1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenulng1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:unsignedLong(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenulng1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenulng1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evenulng1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:unsignedLong(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evenulng1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evenulng1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evennpi1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:nonPositiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evennpi1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evennpi1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evennpi1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:nonPositiveInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evennpi1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evennpi1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evennpi1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:nonPositiveInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evennpi1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evennpi1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evennni1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:nonNegativeInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evennni1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evennni1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evennni1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:nonNegativeInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evennni1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evennni1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evennni1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:nonNegativeInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evennni1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evennni1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evensht1args-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:short(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evensht1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evensht1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evensht1args-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:short(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evensht1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evensht1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-round-half-to-evensht1args-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "round-half-to-even" function with the arguments set as follows: $arg = xs:short(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.4.5" section-title="fn:round-half-to-even" section-pointer="func-round-half-to-even"/>
      <query name="fn-round-half-to-evensht1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-round-half-to-evensht1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-RoundEvenFunc-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="runtime-error">
      <description>A test whose essence is: `round-half-to-even()`.</description>
      <query name="K-RoundEvenFunc-1" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0017</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-RoundEvenFunc-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="runtime-error">
      <description>A test whose essence is: `round-half-to-even(1.1, 3, "wrong param")`.</description>
      <query name="K-RoundEvenFunc-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0017</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-RoundEvenFunc-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>A test whose essence is: `empty(round-half-to-even(()))`.</description>
      <query name="K-RoundEvenFunc-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-RoundEvenFunc-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-RoundEvenFunc-4" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>A test whose essence is: `empty(round-half-to-even((), 3))`.</description>
      <query name="K-RoundEvenFunc-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-RoundEvenFunc-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-RoundEvenFunc-5" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="runtime-error">
      <description>A test whose essence is: `round-half-to-even("a string")`.</description>
      <query name="K-RoundEvenFunc-5" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on 1.</description>
      <query name="K2-RoundEvenFunc-1" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on 1.0.</description>
      <query name="K2-RoundEvenFunc-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-3" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on 0.5.</description>
      <query name="K2-RoundEvenFunc-3" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-4" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on 1.5.</description>
      <query name="K2-RoundEvenFunc-4" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-5" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on 2.5.</description>
      <query name="K2-RoundEvenFunc-5" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-6" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on a large double.</description>
      <query name="K2-RoundEvenFunc-6" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-7" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on a large double with 2 in precision.</description>
      <query name="K2-RoundEvenFunc-7" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-7.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-8" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on a large double with -2 in precision.</description>
      <query name="K2-RoundEvenFunc-8" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-8.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-9" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on xs:double -0.</description>
      <query name="K2-RoundEvenFunc-9" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-9.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-10" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on xs:float -0.</description>
      <query name="K2-RoundEvenFunc-10" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-10.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-11" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on xs:double NaN.</description>
      <query name="K2-RoundEvenFunc-11" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-11.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-12" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on xs:float NaN.</description>
      <query name="K2-RoundEvenFunc-12" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-12.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-13" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on xs:double -INF.</description>
      <query name="K2-RoundEvenFunc-13" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-13.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-14" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on xs:float -INF.</description>
      <query name="K2-RoundEvenFunc-14" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-14.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-15" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on xs:double INF.</description>
      <query name="K2-RoundEvenFunc-15" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-RoundEvenFunc-16" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Invoked fn:round-half-to-even() on xs:float INF.</description>
      <query name="K2-RoundEvenFunc-16" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-16.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-RoundEvenFunc-17" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Ensure the return type is properly inferred for unsignedShort.</description>
      <query name="K2-RoundEvenFunc-17" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-17.txt</output-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-17-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-RoundEvenFunc-18" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Ensure the return type is properly inferred for unsignedLong.</description>
      <query name="K2-RoundEvenFunc-18" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-18.txt</output-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-18-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-RoundEvenFunc-19" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Ensure the return type is properly inferred for unsignedInt.</description>
      <query name="K2-RoundEvenFunc-19" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-19.txt</output-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-19-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-RoundEvenFunc-20" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Ensure the return type is properly inferred for unsignedByte.</description>
      <query name="K2-RoundEvenFunc-20" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-20.txt</output-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-20-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-RoundEvenFunc-21" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Ensure the return type is properly inferred for positiveInteger.</description>
      <query name="K2-RoundEvenFunc-21" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-21.txt</output-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-21-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-RoundEvenFunc-22" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Ensure the return type is properly inferred for nonPositiveInteger.</description>
      <query name="K2-RoundEvenFunc-22" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-22.txt</output-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-22-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-RoundEvenFunc-23" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Ensure the return type is properly inferred for nonNegativeInteger.</description>
      <query name="K2-RoundEvenFunc-23" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-23.txt</output-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-23-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-RoundEvenFunc-24" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Ensure the return type is properly inferred for negativeInteger.</description>
      <query name="K2-RoundEvenFunc-24" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-24.txt</output-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-24-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-RoundEvenFunc-25" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Ensure the return type is properly inferred for long.</description>
      <query name="K2-RoundEvenFunc-25" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-25.txt</output-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-25-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-RoundEvenFunc-26" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Ensure the return type is properly inferred for int.</description>
      <query name="K2-RoundEvenFunc-26" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-26.txt</output-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-26-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-RoundEvenFunc-27" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Ensure the return type is properly inferred for short.</description>
      <query name="K2-RoundEvenFunc-27" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-27.txt</output-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-27-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-RoundEvenFunc-28" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
      <description>Ensure the return type is properly inferred for byte.</description>
      <query name="K2-RoundEvenFunc-28" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-28.txt</output-file>
      <output-file role="principal" compare="Text">K2-RoundEvenFunc-28-2.txt</output-file>
   </test-case>
	<test-case is-XPath2="false" Creator="Oliver Hallam" name="fn-round-half-to-even-1" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
		<description>check dynamic type of fn:round-half-to-even on argument of union of numeric types.</description>
		<reflects-resolution>http://www.w3.org/Bugs/Public/show_bug.cgi?id=5459</reflects-resolution>
		<query name="fn-round-half-to-even-1" date="2010-03-15"/>
		<output-file role="principal" compare="Text">fn-round-half-to-even-1.txt</output-file>
	</test-case>
	<test-case is-XPath2="false" Creator="Oliver Hallam" name="fn-round-half-to-even-2" FilePath="Functions/NumericFunc/RoundEvenFunc/" scenario="standard">
		<description>check dynamic type of fn:round-half-to-even on argument of union of numeric types.</description>
		<reflects-resolution>http://www.w3.org/Bugs/Public/show_bug.cgi?id=5459</reflects-resolution>
		<query name="fn-round-half-to-even-2" date="2010-03-15"/>
		<output-file role="principal" compare="Text">fn-round-half-to-even-2.txt</output-file>
	</test-case>
</test-group>