<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" name="SeqZeroOrOneFunc" featureOwner="Frans Englich">
   <GroupInfo>
      <title>fn:zero-or-one</title>
      <description/>
   </GroupInfo>
   <test-case is-XPath2="true" name="fn-zero-or-oneint1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:int(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneint1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneint1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneint1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:int(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneint1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneint1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneint1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:int(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneint1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneint1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneintg1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:integer(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneintg1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneintg1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneintg1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:integer(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneintg1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneintg1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneintg1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:integer(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneintg1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneintg1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onedec1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:decimal(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onedec1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onedec1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onedec1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:decimal(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onedec1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onedec1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onedec1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:decimal(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onedec1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onedec1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onedbl1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:double(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onedbl1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onedbl1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onedbl1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:double(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onedbl1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onedbl1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onedbl1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:double(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onedbl1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onedbl1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneflt1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:float(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneflt1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneflt1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneflt1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:float(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneflt1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneflt1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneflt1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:float(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneflt1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneflt1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onelng1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:long(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onelng1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onelng1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onelng1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:long(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onelng1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onelng1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onelng1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:long(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onelng1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onelng1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneusht1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:unsignedShort(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneusht1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneusht1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneusht1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:unsignedShort(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneusht1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneusht1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneusht1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:unsignedShort(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneusht1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneusht1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onenint1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:negativeInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onenint1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onenint1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onenint1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:negativeInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onenint1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onenint1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onenint1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:negativeInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onenint1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onenint1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onepint1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:positiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onepint1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onepint1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onepint1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:positiveInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onepint1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onepint1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onepint1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:positiveInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onepint1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onepint1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneulng1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:unsignedLong(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneulng1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneulng1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneulng1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:unsignedLong(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneulng1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneulng1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-oneulng1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:unsignedLong(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-oneulng1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-oneulng1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onenpi1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:nonPositiveInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onenpi1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onenpi1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onenpi1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:nonPositiveInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onenpi1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onenpi1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onenpi1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:nonPositiveInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onenpi1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onenpi1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onenni1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:nonNegativeInteger(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onenni1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onenni1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onenni1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:nonNegativeInteger(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onenni1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onenni1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onenni1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:nonNegativeInteger(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onenni1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onenni1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onesht1args-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:short(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onesht1args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onesht1args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onesht1args-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:short(mid range).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onesht1args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onesht1args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-onesht1args-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function with the arguments set as follows: $arg = xs:short(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-onesht1args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">fn-zero-or-onesht1args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="fn-zero-or-one-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="runtime-error" Creator="Carmelo Montanez">
      <description>Evaluates the "zero-or-one" function the argument is a sequence of two items.</description>
      <spec-citation spec="FuncOps" section-number="15.2.1" section-title="fn:zero-or-one" section-pointer="func-zero-or-one"/>
      <query name="fn-zero-or-one-1" date="2005-09-20"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <expected-error>FORG0003</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqZeroOrOneFunc-1" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="runtime-error">
      <description>A test whose essence is: `zero-or-one(1, 2)`.</description>
      <query name="K-SeqZeroOrOneFunc-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-SeqZeroOrOneFunc-2" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="runtime-error">
      <description>A test whose essence is: `zero-or-one()`.</description>
      <query name="K-SeqZeroOrOneFunc-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-SeqZeroOrOneFunc-3" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard">
      <description>A test whose essence is: `zero-or-one(true())`.</description>
      <query name="K-SeqZeroOrOneFunc-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-SeqZeroOrOneFunc-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqZeroOrOneFunc-4" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard">
      <description>A test whose essence is: `empty(zero-or-one(()))`.</description>
      <query name="K-SeqZeroOrOneFunc-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-SeqZeroOrOneFunc-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqZeroOrOneFunc-5" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard">
      <description>A test whose essence is: `count(zero-or-one( "one" )) eq 1`.</description>
      <query name="K-SeqZeroOrOneFunc-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-SeqZeroOrOneFunc-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqZeroOrOneFunc-6" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="standard">
      <description>A test whose essence is: `count(zero-or-one( () )) eq 0`.</description>
      <query name="K-SeqZeroOrOneFunc-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-SeqZeroOrOneFunc-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqZeroOrOneFunc-7" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="runtime-error">
      <description>A test whose essence is: `zero-or-one(error())`.</description>
      <query name="K-SeqZeroOrOneFunc-7" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOER0000</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqZeroOrOneFunc-8" FilePath="Functions/SeqFunc/CardinalitySeqFunc/SeqZeroOrOneFunc/" scenario="runtime-error">
      <description>A test whose essence is: `zero-or-one( (1, 2, 3) )`.</description>
      <query name="K-SeqZeroOrOneFunc-8" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0003</expected-error>
   </test-case>
</test-group>