<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" name="SeqAVGFunc" featureOwner="Frans Englich">
   <GroupInfo>
      <title>fn:avg</title>
      <description/>
   </GroupInfo>
   <test-case is-XPath2="true" name="fn-avgint1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:int(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgint1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgint1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgint1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:int(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgint1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgint1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgint1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:int(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgint1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgint1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgintg1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:integer(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgintg1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgintg1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgintg1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:integer(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgintg1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgintg1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgintg1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:integer(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgintg1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgintg1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdec1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:decimal(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdec1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdec1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdec1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:decimal(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdec1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdec1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdec1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:decimal(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdec1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdec1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdbl1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:double(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdbl1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdbl1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdbl1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:double(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdbl1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdbl1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdbl1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:double(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdbl1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdbl1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgflt1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:float(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgflt1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgflt1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgflt1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:float(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgflt1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgflt1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgflt1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:float(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgflt1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgflt1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avglng1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:long(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avglng1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avglng1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avglng1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:long(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avglng1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avglng1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avglng1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:long(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avglng1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avglng1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgusht1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:unsignedShort(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <query name="fn-avgusht1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgusht1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgusht1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:unsignedShort(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgusht1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgusht1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgusht1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:unsignedShort(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgusht1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgusht1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnint1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:negativeInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnint1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnint1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnint1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:negativeInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnint1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnint1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnint1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:negativeInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnint1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnint1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgpint1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:positiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgpint1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgpint1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgpint1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:positiveInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgpint1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgpint1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgpint1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:positiveInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgpint1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgpint1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgulng1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:unsignedLong(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgulng1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgulng1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgulng1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:unsignedLong(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgulng1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgulng1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgulng1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:unsignedLong(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgulng1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgulng1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnpi1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:nonPositiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnpi1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnpi1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnpi1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:nonPositiveInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnpi1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnpi1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnpi1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:nonPositiveInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnpi1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnpi1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnni1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:nonNegativeInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnni1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnni1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnni1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:nonNegativeInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnni1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnni1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnni1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:nonNegativeInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnni1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnni1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgsht1args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:short(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgsht1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgsht1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgsht1args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:short(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgsht1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgsht1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgsht1args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg = xs:short(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgsht1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgsht1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgint2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:int(lower bound) $arg2 = xs:int(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgint2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgint2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgint2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:int(mid range) $arg2 = xs:int(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgint2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgint2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgint2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:int(upper bound) $arg2 = xs:int(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgint2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgint2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgint2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:int(lower bound) $arg2 = xs:int(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgint2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgint2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgint2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:int(lower bound) $arg2 = xs:int(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgint2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgint2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgintg2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:integer(lower bound) $arg2 = xs:integer(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgintg2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgintg2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgintg2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:integer(mid range) $arg2 = xs:integer(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgintg2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgintg2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgintg2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:integer(upper bound) $arg2 = xs:integer(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgintg2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgintg2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgintg2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:integer(lower bound) $arg2 = xs:integer(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgintg2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgintg2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgintg2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:integer(lower bound) $arg2 = xs:integer(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgintg2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgintg2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdec2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:decimal(lower bound) $arg2 = xs:decimal(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdec2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdec2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdec2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:decimal(mid range) $arg2 = xs:decimal(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdec2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdec2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdec2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:decimal(upper bound) $arg2 = xs:decimal(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdec2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdec2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdec2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:decimal(lower bound) $arg2 = xs:decimal(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdec2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdec2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdec2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:decimal(lower bound) $arg2 = xs:decimal(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdec2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdec2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdbl2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:double(lower bound) $arg2 = xs:double(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdbl2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">truevalue.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdbl2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:double(mid range) $arg2 = xs:double(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdbl2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">truevalue.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdbl2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:double(upper bound) $arg2 = xs:double(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdbl2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdbl2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdbl2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:double(lower bound) $arg2 = xs:double(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdbl2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">truevalue.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgdbl2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:double(lower bound) $arg2 = xs:double(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgdbl2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgdbl2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgflt2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:float(lower bound) $arg2 = xs:float(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgflt2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgflt2args-1.txt</output-file>
      <output-file role="principal" compare="Text">fn-avgflt2argsalt-1.txt</output-file>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgflt2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:float(mid range) $arg2 = xs:float(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgflt2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgflt2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgflt2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:float(upper bound) $arg2 = xs:float(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgflt2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgflt2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgflt2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:float(lower bound) $arg2 = xs:float(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgflt2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgflt2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgflt2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:float(lower bound) $arg2 = xs:float(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgflt2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgflt2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avglng2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:long(lower bound) $arg2 = xs:long(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avglng2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avglng2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avglng2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:long(mid range) $arg2 = xs:long(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avglng2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avglng2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avglng2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:long(upper bound) $arg2 = xs:long(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avglng2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avglng2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avglng2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:long(lower bound) $arg2 = xs:long(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avglng2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avglng2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avglng2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:long(lower bound) $arg2 = xs:long(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avglng2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avglng2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgusht2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:unsignedShort(lower bound) $arg2 = xs:unsignedShort(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgusht2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgusht2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgusht2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:unsignedShort(mid range) $arg2 = xs:unsignedShort(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgusht2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgusht2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgusht2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:unsignedShort(upper bound) $arg2 = xs:unsignedShort(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgusht2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgusht2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgusht2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:unsignedShort(lower bound) $arg2 = xs:unsignedShort(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgusht2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgusht2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgusht2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:unsignedShort(lower bound) $arg2 = xs:unsignedShort(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <query name="fn-avgusht2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgusht2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnint2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:negativeInteger(lower bound) $arg2 = xs:negativeInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnint2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnint2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnint2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:negativeInteger(mid range) $arg2 = xs:negativeInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnint2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnint2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnint2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:negativeInteger(upper bound) $arg2 = xs:negativeInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnint2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnint2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnint2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:negativeInteger(lower bound) $arg2 = xs:negativeInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnint2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnint2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnint2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:negativeInteger(lower bound) $arg2 = xs:negativeInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnint2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnint2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgpint2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:positiveInteger(lower bound) $arg2 = xs:positiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgpint2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgpint2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgpint2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:positiveInteger(mid range) $arg2 = xs:positiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgpint2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgpint2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgpint2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:positiveInteger(upper bound) $arg2 = xs:positiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgpint2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgpint2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgpint2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:positiveInteger(lower bound) $arg2 = xs:positiveInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgpint2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgpint2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgpint2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:positiveInteger(lower bound) $arg2 = xs:positiveInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgpint2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgpint2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgulng2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:unsignedLong(lower bound) $arg2 = xs:unsignedLong(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgulng2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgulng2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgulng2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:unsignedLong(mid range) $arg2 = xs:unsignedLong(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgulng2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgulng2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgulng2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:unsignedLong(upper bound) $arg2 = xs:unsignedLong(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgulng2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgulng2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgulng2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:unsignedLong(lower bound) $arg2 = xs:unsignedLong(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgulng2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgulng2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgulng2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:unsignedLong(lower bound) $arg2 = xs:unsignedLong(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgulng2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgulng2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnpi2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:nonPositiveInteger(lower bound) $arg2 = xs:nonPositiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnpi2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnpi2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnpi2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:nonPositiveInteger(mid range) $arg2 = xs:nonPositiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnpi2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnpi2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnpi2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:nonPositiveInteger(upper bound) $arg2 = xs:nonPositiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnpi2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnpi2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnpi2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:nonPositiveInteger(lower bound) $arg2 = xs:nonPositiveInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnpi2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnpi2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnpi2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:nonPositiveInteger(lower bound) $arg2 = xs:nonPositiveInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnpi2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnpi2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnni2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:nonNegativeInteger(lower bound) $arg2 = xs:nonNegativeInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnni2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnni2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnni2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:nonNegativeInteger(mid range) $arg2 = xs:nonNegativeInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnni2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnni2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnni2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:nonNegativeInteger(upper bound) $arg2 = xs:nonNegativeInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnni2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnni2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnni2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:nonNegativeInteger(lower bound) $arg2 = xs:nonNegativeInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnni2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnni2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgnni2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:nonNegativeInteger(lower bound) $arg2 = xs:nonNegativeInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgnni2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgnni2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgsht2args-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:short(lower bound) $arg2 = xs:short(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgsht2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgsht2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgsht2args-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:short(mid range) $arg2 = xs:short(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgsht2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgsht2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgsht2args-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:short(upper bound) $arg2 = xs:short(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgsht2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgsht2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgsht2args-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:short(lower bound) $arg2 = xs:short(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgsht2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgsht2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avgsht2args-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "avg" function with the arguments set as follows: $arg1 = xs:short(lower bound) $arg2 = xs:short(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avgsht2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avgsht2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-001" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of integer.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-001" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-001.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-002" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: yearMonthDuration.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-002" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-002.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-003" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: empty seq.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-003" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-003.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-004" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: float.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-004" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-004.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-005" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of integer, float.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-005" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-005.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-006" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of integer.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-006" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-006.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-007" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of integer.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-007" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-007.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-008" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of integer.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-008" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-008.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-009" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of integer,decimal.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-009" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-009.txt</output-file>
      <output-file role="principal" compare="Text">fn-avg-mix-argsalt-009.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-010" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of integer,decimal.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-010" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-010.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-011" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of integer,float,empty seq.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-011" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-011.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-012" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of float,decimal.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-012" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-012.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-013" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of float,decimal.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-013" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-013.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-014" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of float,decimal.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-014" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-014.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-015" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of float,decimal.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-015" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-015.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-016" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of float,decimal.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-016" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-016.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-017" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of float,decimal.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-017" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-017.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-018" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of float.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-018" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-018.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-019" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of float,decimal.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-019" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-019.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-020" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of double,integer.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-020" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-020.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-021" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of double,integer.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-021" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-021.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-022" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of double,integer.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-022" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-022.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-023" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of double,integer.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-023" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-023.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-024" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of double,integer.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-024" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-024.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-025" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of double,integer.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-025" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-025.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-026" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of double,float.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-026" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-026.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-027" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Pulkita Tyagi">
      <description>Arg: seq of double,integer.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-027" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-027.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-028" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-028" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-029" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-029" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-030" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-030" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-031" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-031" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-032" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-032" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-033" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-033" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-034" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-034" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-035" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-035" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-036" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-036" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-037" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-037" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-038" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-038" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-039" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-039" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-040" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-040" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-041" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-041" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-042" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-042" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-043" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-043" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-044" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-044" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-045" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-045" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-046" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-046" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-047" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-047" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-047.txt</output-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-048" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-048" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-049" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-049" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-050" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-050" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-051" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-051" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-052" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-052" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-053" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-053" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-054" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-054" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-055" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-055" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-056" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-056" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-avg-mix-args-056.txt</output-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-057" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-057" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-058" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-058" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-059" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-059" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-060" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-060" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-061" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-061" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-062" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-062" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-063" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-063" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-064" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-064" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-065" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0006.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-065" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="fn-avg-mix-args-066" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Pulkita Tyagi">
      <description>Negative test gives FORG0001.</description>
      <spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
      <spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
      <query name="fn-avg-mix-args-066" date="2006-01-13"/>
      <input-file role="principal-data" variable="input-context">bib2</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error">
      <description>A test whose essence is: `avg()`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error">
      <description>A test whose essence is: `avg(1, "wrong param")`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `empty(avg(()))`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((3, 3, 3)) eq 3`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((-3, -3, -3)) eq -3`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-6" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((xs:float(1), xs:integer(3), xs:float(3))) instance of xs:float`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-7" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((xs:float(1), xs:integer(3), xs:decimal(3))) instance of xs:float`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-7.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-8" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((xs:float(1), xs:integer(3), xs:double(3))) instance of xs:double`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-8.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-9" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((xs:integer(1), xs:integer(3), xs:decimal(3))) instance of xs:decimal`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-9.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-10" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((xs:float(1), xs:integer(0), xs:float(5))) eq 2.0`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-10.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-11" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((xs:float(1), xs:integer(0), xs:untypedAtomic(-4))) eq -1`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-11.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-12" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((xs:float(1), xs:integer(0), xs:untypedAtomic(3))) instance of xs:double`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-12.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-13" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((xs:untypedAtomic(3), xs:integer(0), xs:decimal(1))) instance of xs:double`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-13.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-14" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `string(avg((3, 3, xs:double("NaN")))) eq "NaN"`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-14.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-15" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `string(avg((3, xs:double("NaN"), 3))) eq "NaN"`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-16" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `string(avg((xs:double("NaN"), 3, 3))) eq "NaN"`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-16.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-17" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `empty(avg(()))`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-17.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-18" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `empty(avg(((), ())))`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-18.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-19" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((-5, -0, -3, -6)) eq -3.5`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-19.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-20" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `string(avg((1, 2, 3, xs:float("NaN")))) eq "NaN"`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-20.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-21" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `string(avg((1, 2, 3, xs:double("NaN")))) eq "NaN"`.</description>
      <query name="K-SeqAVGFunc-21" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqAVGFunc-21.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-22" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `string(avg((xs:double("NaN"), 1, 2, 3))) eq "NaN"`.</description>
      <query name="K-SeqAVGFunc-22" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqAVGFunc-22.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-23" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `string(avg((xs:float("NaN"), 1, 2, 3))) eq "NaN"`.</description>
      <query name="K-SeqAVGFunc-23" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqAVGFunc-23.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-24" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `string(avg((1, 2, xs:double("NaN"), 1, 2, 3))) eq "NaN"`.</description>
      <query name="K-SeqAVGFunc-24" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqAVGFunc-24.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-25" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `string(avg((1, 2, xs:float("NaN"), 1, 2, 3))) eq "NaN"`.</description>
      <query name="K-SeqAVGFunc-25" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqAVGFunc-25.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-26" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg(xs:untypedAtomic("3")) instance of xs:double`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-26.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-27" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((1, 2, xs:untypedAtomic("3"))) instance of xs:double`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-27.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-28" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((1, 2, xs:untypedAtomic("3"))) eq 2`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-28.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-29" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((xs:float(1), 2, xs:untypedAtomic("3"))) eq 2`.</description>
      <query name="K-SeqAVGFunc-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-SeqAVGFunc-29.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-30" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((xs:float(1), 2, xs:untypedAtomic("3"))) instance of xs:double`.</description>
      <query name="K-SeqAVGFunc-30" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqAVGFunc-30.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-31" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error">
      <description>A test whose essence is: `avg("a string")`.</description>
      <query name="K-SeqAVGFunc-31" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-32" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error">
      <description>A test whose essence is: `avg(xs:anyURI("a string"))`.</description>
      <query name="K-SeqAVGFunc-32" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-33" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error">
      <description>A test whose essence is: `avg((1, 2, 3, xs:anyURI("a string"), xs:double("NaN")))`.</description>
      <query name="K-SeqAVGFunc-33" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-34" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error">
      <description>A test whose essence is: `avg("a string")`.</description>
      <query name="K-SeqAVGFunc-34" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-35" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error">
      <description>A test whose essence is: `avg((xs:untypedAtomic(3), xs:integer(3), xs:string(1)))`.</description>
      <query name="K-SeqAVGFunc-35" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-36" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error">
      <description>A test whose essence is: `avg((xs:string(1), xs:integer(3), xs:untypedAtomic(3)))`.</description>
      <query name="K-SeqAVGFunc-36" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-37" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error">
      <description>A test whose essence is: `avg((xs:float(2), xs:integer(3), "a string", xs:double(2)))`.</description>
      <query name="K-SeqAVGFunc-37" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-38" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error">
      <description>A test whose essence is: `avg((xs:yearMonthDuration("P20Y"), (3, 4, 5)))`.</description>
      <query name="K-SeqAVGFunc-38" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-39" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((xs:yearMonthDuration("P20Y"), xs:yearMonthDuration("P10M"))) eq xs:yearMonthDuration("P125M")`.</description>
      <query name="K-SeqAVGFunc-39" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqAVGFunc-39.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-40" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `empty(avg( () ))`.</description>
      <query name="K-SeqAVGFunc-40" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqAVGFunc-40.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-41" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `string(avg((xs:float('INF'), xs:float('-INF')))) eq "NaN"`.</description>
      <query name="K-SeqAVGFunc-41" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqAVGFunc-41.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-42" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `string(avg(((3, 4, 5), xs:float('NaN')))) eq "NaN"`.</description>
      <query name="K-SeqAVGFunc-42" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqAVGFunc-42.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqAVGFunc-43" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>A test whose essence is: `avg((3, 4, 5)) eq 4.0`.</description>
      <query name="K-SeqAVGFunc-43" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqAVGFunc-43.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqAVGFunc-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>Ensure the return type is correct when type promotion is required.</description>
      <query name="K2-SeqAVGFunc-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-SeqAVGFunc-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqAVGFunc-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>Ensure the return type is correct when type promotion is required(#2).</description>
      <query name="K2-SeqAVGFunc-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-SeqAVGFunc-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqAVGFunc-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
      <description>Check the average of two integers.</description>
      <query name="K2-SeqAVGFunc-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-SeqAVGFunc-3.txt</output-file>
   </test-case>
	<test-case is-XPath2="true" name="fn-avg-1" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error" Creator="Carmelo Montanez">
		<description>Evaluates the "avg" function with the argument set to a sequence of strings. Should raise a type error.</description>
		<spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
		<spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
		<query name="fn-avg-1" date="2005-09-20"/>
		<input-file role="principal-data" variable="input-context1">emptydoc</input-file>
		<expected-error>FORG0006</expected-error>
	</test-case>
	<test-case is-XPath2="true" name="fn-avg-2" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard" Creator="Carmelo Montanez">
		<description>Evaluates the "avg" function with the argument set to the empty sequence.</description>
		<spec-citation spec="FuncOps" section-number="15.4.2" section-title="fn:avg" section-pointer="func-avg"/>
		<spec-citation spec="XQuery" section-number="3.1.5" section-title="Function Calls" section-pointer="id-function-calls"/>
		<query name="fn-avg-2" date="2005-09-20"/>
		<input-file role="principal-data" variable="input-context1">emptydoc</input-file>
		<output-file role="principal" compare="Text">fn-avg-2.txt</output-file>
	</test-case>
	<test-case Creator="Oliver Hallam" is-XPath2="true" name="fn-avg-3" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
		<description>Test fn:avg on a sequence of xs:dayTimeDuration arguments.</description>
		<query name="fn-avg-3" date="2010-03-15"/>
		<output-file role="principal" compare="Text">fn-avg-3.txt</output-file>
	</test-case>
	<test-case Creator="Oliver Hallam" is-XPath2="true" name="fn-avg-4" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
		<description>Test fn:avg on a sequence of xs:dayTimeDuration arguments.</description>
		<query name="fn-avg-4" date="2010-03-15"/>
		<output-file role="principal" compare="Text">fn-avg-4.txt</output-file>
	</test-case>
	<test-case Creator="Oliver Hallam" is-XPath2="true" name="fn-avg-5" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
		<description>Test fn:avg on a sequence of xs:yearMonthDuration arguments.</description>
		<query name="fn-avg-5" date="2010-03-15"/>
		<output-file role="principal" compare="Text">fn-avg-5.txt</output-file>
	</test-case>
	<test-case Creator="Oliver Hallam" is-XPath2="true" name="fn-avg-6" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="standard">
		<description>Test fn:avg on a sequence of xs:yearMonthDuration arguments.</description>
		<query name="fn-avg-6" date="2010-03-15"/>
		<output-file role="principal" compare="Text">fn-avg-6.txt</output-file>
	</test-case>
	<test-case Creator="Oliver Hallam" is-XPath2="true" name="fn-avg-7" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error">
		<description>Test fn:avg on a sequence of xs:yearMonthDuration and xs:dayTimeDuration arguments.</description>
		<query name="fn-avg-7" date="2010-03-15"/>
		<expected-error>FORG0006</expected-error>
		<expected-error>XPTY0004</expected-error>
	</test-case>
	<test-case Creator="Oliver Hallam" is-XPath2="true" name="fn-avg-8" FilePath="Functions/SeqFunc/AggregateSeqFunc/SeqAVGFunc/" scenario="runtime-error">
		<description>Test fn:avg on a sequence of xs:duration arguments.</description>
		<query name="fn-avg-8" date="2010-03-15"/>
		<expected-error>FORG0006</expected-error>
		<expected-error>XPTY0004</expected-error>
	</test-case>
</test-group>