<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" name="NumericMod" featureOwner="Frans Englich">
   <GroupInfo>
      <title>op:numeric-mod</title>
      <description/>
   </GroupInfo>
   <test-case is-XPath2="true" name="op-numeric-modint2args-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:int(lower bound) $arg2 = xs:int(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modint2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modint2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modintg2args-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:integer(lower bound) $arg2 = xs:integer(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modintg2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modintg2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modintg2args-2" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:integer(lower bound) $arg2 = xs:integer(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modintg2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modintg2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-moddec2args-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:decimal(lower bound) $arg2 = xs:decimal(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-moddec2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-moddec2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-moddec2args-2" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:decimal(lower bound) $arg2 = xs:decimal(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-moddec2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-moddec2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-moddbl2args-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:double(lower bound) $arg2 = xs:double(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-moddbl2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-moddbl2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modflt2args-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:float(lower bound) $arg2 = xs:float(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modflt2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modflt2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modlng2args-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:long(lower bound) $arg2 = xs:long(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modlng2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modlng2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modusht2args-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:unsignedShort(lower bound) $arg2 = xs:unsignedShort(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modusht2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modusht2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modusht2args-2" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:unsignedShort(lower bound) $arg2 = xs:unsignedShort(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modusht2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modusht2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modpint2args-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:positiveInteger(lower bound) $arg2 = xs:positiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modpint2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modpint2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modpint2args-2" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:positiveInteger(mid range) $arg2 = xs:positiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modpint2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modpint2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modpint2args-3" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:positiveInteger(upper bound) $arg2 = xs:positiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modpint2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modpint2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modpint2args-4" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:positiveInteger(lower bound) $arg2 = xs:positiveInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modpint2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modpint2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modpint2args-5" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:positiveInteger(lower bound) $arg2 = xs:positiveInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modpint2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modpint2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modulng2args-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:unsignedLong(lower bound) $arg2 = xs:unsignedLong(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modulng2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modulng2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modulng2args-2" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:unsignedLong(lower bound) $arg2 = xs:unsignedLong(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modulng2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modulng2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modnni2args-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:nonNegativeInteger(lower bound) $arg2 = xs:nonNegativeInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modnni2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modnni2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modnni2args-2" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:nonNegativeInteger(lower bound) $arg2 = xs:nonNegativeInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modnni2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modnni2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modsht2args-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:numeric-mod" operator with the arguments set as follows: $arg1 = xs:short(lower bound) $arg2 = xs:short(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modsht2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modsht2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modmix2args-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Ravindranath Chennoju">
      <description>Simple mod test with () as one operand should return null.</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modmix2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modmix2args-1.txt</output-file>
      <expected-error>XPST0005</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modmix2args-2" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="runtime-error" Creator="Ravindranath Chennoju">
      <description>Simple mod test pass string for second operator.</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modmix2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="op-numeric-modmix2args-3" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Ravindranath Chennoju">
      <description>Simple mod test, second operator cast string to integer.</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modmix2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modmix2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="op-numeric-modmix2args-4" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Ravindranath Chennoju">
      <description>Simple mod test, second operator is a node, atomization applied.</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modmix2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modmix2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="op-numeric-modmix2args-5" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Ravindranath Chennoju">
      <description>Simple mod test, second operator is a node, atomization applied.</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modmix2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modmix2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="op-numeric-modmix2args-6" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="runtime-error" Creator="Ravindranath Chennoju">
      <description>Simple mod test, second operator node which is not atomizable.</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modmix2args-6" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="op-numeric-modmix2args-7" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard" Creator="Ravindranath Chennoju">
      <description>Simple mod test, two operands are nodes.</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modmix2args-7" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-numeric-modmix2args-7.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="op-numeric-modmix2args-8" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="runtime-error" Creator="Ravindranath Chennoju">
      <description>Simple mod test, second operator is a node, atomizable but not castable to integer.</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modmix2args-8" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="op-numeric-modmix2args-9" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="runtime-error" Creator="Ravindranath Chennoju">
      <description>Simple mod test pass an empty node for second operator.</description>
      <spec-citation spec="FuncOps" section-number="6.2.6" section-title="op:numeric-mod" section-pointer="func-numeric-mod"/>
      <spec-citation spec="XQuery" section-number="3.4" section-title="Arithmetic Expressions" section-pointer="id-arithmetic"/>
      <query name="op-numeric-modmix2args-9" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:decimal(6) mod xs:integer(2)) instance of xs:decimal`.</description>
      <query name="K-NumericMod-1" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-2" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:integer(6) mod xs:decimal(2)) instance of xs:decimal`.</description>
      <query name="K-NumericMod-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-3" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:integer(6) mod xs:integer(2)) instance of xs:integer`.</description>
      <query name="K-NumericMod-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-NumericMod-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-4" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:decimal(6) mod xs:decimal(2)) instance of xs:decimal`.</description>
      <query name="K-NumericMod-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-NumericMod-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-5" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:decimal(6) mod xs:float(2)) instance of xs:float`.</description>
      <query name="K-NumericMod-5" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-6" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:float(6) mod xs:decimal(2)) instance of xs:float`.</description>
      <query name="K-NumericMod-6" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-7" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:float(6) mod xs:integer(2)) instance of xs:float`.</description>
      <query name="K-NumericMod-7" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-7.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-8" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:integer(6) mod xs:float(2)) instance of xs:float`.</description>
      <query name="K-NumericMod-8" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-8.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-9" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:float(6) mod xs:float(2)) instance of xs:float`.</description>
      <query name="K-NumericMod-9" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-9.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-10" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:decimal(6) mod xs:double(2)) instance of xs:double`.</description>
      <query name="K-NumericMod-10" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-10.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-11" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:double(6) mod xs:decimal(2)) instance of xs:double`.</description>
      <query name="K-NumericMod-11" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-11.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-12" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:double(6) mod xs:float(2)) instance of xs:double`.</description>
      <query name="K-NumericMod-12" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-12.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-13" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:float(6) mod xs:double(2)) instance of xs:double`.</description>
      <query name="K-NumericMod-13" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-13.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-14" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:double(6) mod xs:integer(2)) instance of xs:double`.</description>
      <query name="K-NumericMod-14" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-14.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-15" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:integer(6) mod xs:double(2)) instance of xs:double`.</description>
      <query name="K-NumericMod-15" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-16" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:double(6) mod xs:double(2)) instance of xs:double`.</description>
      <query name="K-NumericMod-16" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-16.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-17" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `10 mod 3 eq 1`.</description>
      <query name="K-NumericMod-17" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-17.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-18" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `6 mod -2 eq 0`.</description>
      <query name="K-NumericMod-18" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-18.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-19" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `4.5 mod 1.2 eq 0.9`.</description>
      <query name="K-NumericMod-19" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-19.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-20" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `1.23E2 mod 0.6E1 eq 3.0E0`.</description>
      <query name="K-NumericMod-20" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-20.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-21" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="parse-error">
      <description>Invalid whitespace for the 'mod' operator.</description>
      <query name="K-NumericMod-21" 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-NumericMod-22" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="parse-error">
      <description>Invalid whitespace for the 'mod' operator.</description>
      <query name="K-NumericMod-22" 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-NumericMod-23" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="parse-error">
      <description>Invalid whitespace for the 'mod' operator.</description>
      <query name="K-NumericMod-23" 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-NumericMod-24" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="runtime-error">
      <description>Invoke the 'mod operator with invalid operands.</description>
      <query name="K-NumericMod-24" 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="K-NumericMod-25" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="runtime-error">
      <description>Invoke the 'mod operator with invalid operands.</description>
      <query name="K-NumericMod-25" 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="K-NumericMod-26" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:untypedAtomic("5") mod xs:double(3)) eq 2`.</description>
      <query name="K-NumericMod-26" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-26.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-27" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>A test whose essence is: `(xs:decimal(5) mod xs:untypedAtomic("3")) eq 2`.</description>
      <query name="K-NumericMod-27" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-27.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-28" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Operand(s) which are the empty sequence.</description>
      <query name="K-NumericMod-28" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-28.txt</output-file>
      <expected-error>XPST0005</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-NumericMod-29" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Operand(s) which are the empty sequence.</description>
      <query name="K-NumericMod-29" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-NumericMod-29.txt</output-file>
      <expected-error>XPST0005</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-1" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Divisor is small negative xs:integer.</description>
      <query name="K2-NumericMod-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-NumericMod-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-2" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Divisor is small negative xs:decimal.</description>
      <query name="K2-NumericMod-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-NumericMod-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-3" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Divisor is small negative xs:double.</description>
      <query name="K2-NumericMod-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-NumericMod-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-4" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Divisor is small negative xs:float.</description>
      <query name="K2-NumericMod-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-NumericMod-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-5" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Divisor is large negative xs:integer.</description>
      <query name="K2-NumericMod-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-NumericMod-5.txt</output-file>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-6" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Divisor is large negative xs:decimal.</description>
      <query name="K2-NumericMod-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-NumericMod-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-7" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Divisor is large negative xs:double.</description>
      <query name="K2-NumericMod-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-NumericMod-7.txt</output-file>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-8" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Divisor is large negative xs:float.</description>
      <query name="K2-NumericMod-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-NumericMod-8.txt</output-file>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-9" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:float/NaN.</description>
      <query name="K2-NumericMod-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-NumericMod-9.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-10" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Right op is xs:float/NaN.</description>
      <query name="K2-NumericMod-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-NumericMod-10.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-11" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Both ops are xs:float/NaN.</description>
      <query name="K2-NumericMod-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-NumericMod-11.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-12" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:double/NaN.</description>
      <query name="K2-NumericMod-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-NumericMod-12.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-13" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Right op is xs:double/NaN.</description>
      <query name="K2-NumericMod-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-NumericMod-13.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-14" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Both ops are xs:double/NaN.</description>
      <query name="K2-NumericMod-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-NumericMod-14.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-15" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:double/positive INF.</description>
      <query name="K2-NumericMod-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-NumericMod-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-16" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Right op is xs:double/positive INF.</description>
      <query name="K2-NumericMod-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-NumericMod-16.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-17" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Both ops are xs:double/positive INF.</description>
      <query name="K2-NumericMod-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-NumericMod-17.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-18" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:double/-INF.</description>
      <query name="K2-NumericMod-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-NumericMod-18.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-19" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Right op is xs:double/-INF.</description>
      <query name="K2-NumericMod-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-NumericMod-19.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-20" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Both ops are xs:double/-INF.</description>
      <query name="K2-NumericMod-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-NumericMod-20.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-21" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:double/positive 0.</description>
      <query name="K2-NumericMod-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-NumericMod-21.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-22" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Right op is xs:double/positive 0.</description>
      <query name="K2-NumericMod-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-NumericMod-22.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-23" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Both ops are xs:double/positive 0.</description>
      <query name="K2-NumericMod-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-NumericMod-23.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-24" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:double/-0.</description>
      <query name="K2-NumericMod-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-NumericMod-24.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-25" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Right op is xs:double/-0.</description>
      <query name="K2-NumericMod-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-NumericMod-25.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-26" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Both ops are xs:double/-0.</description>
      <query name="K2-NumericMod-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-NumericMod-26.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-27" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:float/positive INF.</description>
      <query name="K2-NumericMod-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-NumericMod-27.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-28" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Right op is xs:float/positive INF.</description>
      <query name="K2-NumericMod-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-NumericMod-28.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-29" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Both ops are xs:float/positive INF.</description>
      <query name="K2-NumericMod-29" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-29.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-30" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:float/-INF.</description>
      <query name="K2-NumericMod-30" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-30.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-31" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Right op is xs:float/-INF.</description>
      <query name="K2-NumericMod-31" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-31.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-32" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Both ops are xs:float/-INF.</description>
      <query name="K2-NumericMod-32" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-32.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-33" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:float/positive 0.</description>
      <query name="K2-NumericMod-33" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-33.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-34" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Right op is xs:float/positive 0.</description>
      <query name="K2-NumericMod-34" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-34.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-35" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Both ops are xs:float/positive 0.</description>
      <query name="K2-NumericMod-35" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-35.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-36" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:float/-0.</description>
      <query name="K2-NumericMod-36" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-36.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-37" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Right op is xs:float/-0.</description>
      <query name="K2-NumericMod-37" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-37.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-38" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Both ops are xs:float/-0.</description>
      <query name="K2-NumericMod-38" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-38.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-39" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:float/-0.</description>
      <query name="K2-NumericMod-39" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-39.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-40" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:float/0.</description>
      <query name="K2-NumericMod-40" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-40.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-41" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:double/-0.</description>
      <query name="K2-NumericMod-41" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-41.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-42" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:double/0.</description>
      <query name="K2-NumericMod-42" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-42.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-43" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:float/-0 with INF as divisor.</description>
      <query name="K2-NumericMod-43" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-43.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-44" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:float/0 with INF as divisor.</description>
      <query name="K2-NumericMod-44" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-44.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-45" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:double/-0 with INF as divisor.</description>
      <query name="K2-NumericMod-45" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-45.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-46" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:double/0 with INF as divisor.</description>
      <query name="K2-NumericMod-46" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-46.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-47" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:float/-0 with -INF as divisor.</description>
      <query name="K2-NumericMod-47" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-47.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-48" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:float/0 with -INF as divisor.</description>
      <query name="K2-NumericMod-48" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-48.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-49" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:double/-0 with -INF as divisor.</description>
      <query name="K2-NumericMod-49" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-49.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-50" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Left op is xs:double/0 with -INF as divisor.</description>
      <query name="K2-NumericMod-50" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-50.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-51" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Trival mod with xs:double.</description>
      <query name="K2-NumericMod-51" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-51.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-52" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Trival mod with xs:double(#2).</description>
      <query name="K2-NumericMod-52" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-52.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-53" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Trival mod with xs:double(#3).</description>
      <query name="K2-NumericMod-53" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-53.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-54" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Trival mod with xs:double(#4).</description>
      <query name="K2-NumericMod-54" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-54.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-55" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Trival mod with xs:float.</description>
      <query name="K2-NumericMod-55" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-55.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-56" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Trival mod with xs:float(#2).</description>
      <query name="K2-NumericMod-56" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-56.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-57" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Trival mod with xs:float(#3).</description>
      <query name="K2-NumericMod-57" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-57.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-58" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Trival mod with xs:float(#4).</description>
      <query name="K2-NumericMod-58" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-58.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-59" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="runtime-error">
      <description>Divide xs:integer by 0.</description>
      <query name="K2-NumericMod-59" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOAR0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-60" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="runtime-error">
      <description>Divide an xs:decimal by 0.</description>
      <query name="K2-NumericMod-60" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOAR0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-NumericMod-61" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="runtime-error">
      <description>Divide xs:integer by 0.0.</description>
      <query name="K2-NumericMod-61" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOAR0001</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-NumericMod-62" FilePath="Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
      <description>Ensure the 'div' keyword is parsed correctly.</description>
      <query name="K2-NumericMod-62" static-name="K2-NumericMod-62-static-cbcl" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-NumericMod-62.txt</output-file>
   </test-case>
	<test-case is-XPath2="false" Creator="Oliver Hallam" name="op-numeric-mod-1" FilePath="Expressions/Operators/ArithExpr/NumericOpr/NumericMod/" scenario="standard">
		<description>Check dynamic type of mod on arguments of union of numeric types and untypedAtomic.</description>
		<reflects-resolution>http://www.w3.org/Bugs/Public/show_bug.cgi?id=6160</reflects-resolution>
		<query name="op-numeric-mod-1" date="2010-03-16"/>
		<output-file role="principal" compare="Text">op-numeric-mod-1.txt</output-file>
	</test-case>
</test-group>