<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" name="SeqExprCast" featureOwner="IBM/XSLT and Frans Englich">
   <GroupInfo>
      <title>Cast</title>
      <description/>
   </GroupInfo>
   <test-case is-XPath2="true" name="casthc1" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluate an expression and cast it as an xs:integer.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc1" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc2" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluate an expression and cast it as an xs:float.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc2" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc3" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluate an expression and cast it as an xs:boolean.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc3" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc4" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluate an expression and cast it as an xs:double.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc4" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc5" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluate an expression and cast it as an xs:decimal.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc5" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc6" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluate an expression and cast it as an xs:string.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc6" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc7" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of a xs:string value casted as an xs:string.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc7" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc7.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc8" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of a xs:float value casted as an xs:float.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc8" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc8.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc9" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of a xs:float value casted as an xs:string.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc9" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc9.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc10" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of a xs:float value casted as an xs:double.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc10" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc10.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc11" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of a xs:float value casted as an xs:boolean.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc11" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc11.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc12" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:double value casted as an xs:double.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc12" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc12.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc13" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:double value casted as an xs:string.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc13" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc13.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc14" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:double value casted as an xs:float.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc14" date="2005-02-14"/>
      <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="casthc15" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:double value casted as an xs:boolean.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc15" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc15.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc16" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:decimal value casted as an xs:string.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc16" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc16.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc17" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:decimal value casted as an xs:float.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc17" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc17.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc18" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:decimal value casted as an xs:double.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc18" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc18.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc19" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:decimal value casted as an xs:decimal.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc19" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc19.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc20" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:decimal value casted as an xs:integer.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc20" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc20.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc21" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:decimal value casted as an xs:boolean.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc21" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc21.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc22" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:integer value casted as an xs:string.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc22" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc22.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc23" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:integer value casted as an xs:float.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc23" date="2005-02-14"/>
      <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="casthc24" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:integer value casted as an xs:double.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc24" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc24.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc25" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:integer value casted as an xs:decimal.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc25" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc25.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc26" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:integer value casted as an xs:integer.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc26" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc26.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc27" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:integer value casted as an xs:boolean.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc27" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc27.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc28" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:dateTime value casted as an xs:string.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc28" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc28.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc29" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:dateTime value casted as an xs:dateTime.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc29" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc29.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc30" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:dateTime value casted as an xs:time.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc30" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc30.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc31" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:dateTime value casted as an xs:date.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc31" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc31.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc32" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:date value casted as an xs:string.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc32" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc32.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc33" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:date value casted as an xs:dateTime.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc33" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc33.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc34" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:date value casted as an xs:date.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc34" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc34.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc35" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:time value casted as an xs:string.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc35" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc35.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc36" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:time value casted as an xs:time.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc36" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc36.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc37" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:boolean value casted as an xs:string.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc37" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc37.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc38" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:boolean value casted as an xs:float.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc38" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc38.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc39" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:boolean value casted as an xs:double.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc39" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc39.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc40" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:boolean value casted as an xs:decimal.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc40" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc40.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc41" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:boolean value casted as an xs:integer.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="casthc41" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc41.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc42" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:boolean value casted as an xs:boolean.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc42" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">casthc42.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="casthc43" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Carmelo Montanez">
      <description>Evaluation of an xs:string value casted as an xs:NOTATION.</description>
      <spec-citation spec="XQuery" section-number="3.12.3" section-title="Cast" section-pointer="id-cast"/>
      <query name="casthc43" date="2006-02-06"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs001" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(INF) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs001" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs001.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs002" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(0.0E0) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs002" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs002.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs003" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs003" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs003.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs004" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(INF) to xs:string.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs004" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs004.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs005" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(0.0E0) to xs:string.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs005" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs005.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs006" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:string.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs006" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs006.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs007" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-0.0E0) to xs:float.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs007" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs007.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs008" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(NaN) to xs:float.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs008" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs008.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs009" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(1e-5) to xs:float.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs009" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs009.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs010" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-10000000) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs010" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs010.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs011" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs011" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs012" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-0.0E0) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs012" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs012.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs013" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(NaN) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs013" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs013.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs014" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(1e-5) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs014" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs014.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs015" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-10000000) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs015" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs015.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs016" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs016" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs017" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-0.0E0) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs017" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs018" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(NaN) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs018" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs019" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(1e-5) to xs:decimal.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs019" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs020" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(5.5432) to xs:decimal.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs020" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs020.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs021" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs021" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs022" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-0.0E0) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs022" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs023" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(NaN) to xs:integer.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs023" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs024" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(1e-5) to xs:integer.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs024" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs025" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-1.1234) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs025" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs026" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs026" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs027" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(P1Y2M3DT10H30M23S) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs027" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs027.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs028" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-P1Y1M1DT1H1M1.123S) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs028" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs028.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs029" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs029" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs030" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-P1Y1M1DT1H1M1.123S) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs030" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs031" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(P24M) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs031" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs031.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs032" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-P21M) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs032" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs032.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs033" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs033" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs034" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-P1Y1M1DT1H1M1.123S) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs034" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs035" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(P3DT10H30M) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs035" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs035.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs036" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-PT100M) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs036" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs036.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs037" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs037" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs038" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(1999-05-31T13:20:00) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs038" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs038.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs039" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-1999-05-31T13:20:00+14:00) to xs:dateTime.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs039" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs039.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs040" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(2000-01-16T00:00:00Z) to xs:dateTime.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs040" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs040.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs041" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:dateTime.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs041" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs042" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(13:20:00-05:00) to xs:time.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs042" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs042.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs043" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(13:20:02.123) to xs:time.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs043" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs043.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs044" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(13:20:00Z) to xs:time.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs044" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs044.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs045" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs045" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs046" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(1999-05-31) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs046" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs046.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs047" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-0012-12-03-05:00) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs047" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs047.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs048" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(1999-05-31Z) to xs:date.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs048" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs048.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs049" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs049" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs050" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(1999-05) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs050" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs050.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs051" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-0012-12-05:00) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs051" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs051.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs052" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(1999-05Z) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs052" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs052.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs053" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs053" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs054" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(1999) to xs:gYear.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs054" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs054.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs055" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(-0012-05:00) to xs:gYear.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs055" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs055.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs056" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(1999Z) to xs:gYear.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs056" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs056.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs057" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:gYear.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs057" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs058" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(--05-31) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs058" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs058.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs059" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(--05-31+14:00) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs059" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs059.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs060" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(--05-31Z) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs060" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs060.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs061" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs061" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs062" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(---31) to xs:gDay.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs062" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs062.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs063" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(---03-05:00) to xs:gDay.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs063" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs063.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs064" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(---31Z) to xs:gDay.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs064" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs064.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs065" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:gDay.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs065" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs066" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(--05) to xs:gMonth.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs066" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs066.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs067" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(--12-05:00) to xs:gMonth.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs067" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs067.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs068" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(--05Z) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs068" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs068.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs069" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:gMonth.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs069" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs070" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(0.0) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs070" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs071" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(0) to xs:boolean.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs071" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs071.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs072" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:boolean.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs072" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs072.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs073" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs073" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs073.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs074" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(00000000) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs074" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs074.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs075" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(D74D35D35D35) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs075" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs075.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs076" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs076" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs077" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(010010101) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs077" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs078" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(0fb7) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs078" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs078.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs079" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(D74D35D35D35) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs079" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs079.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs080" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(http://www.example.com/~b%C3%A9b%C3%A9) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs080" date="2006-01-27-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs080.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs081" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(true) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs081" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs081.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs082" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:untypedAtomic(http://www.ietf.org/rfc/rfc2396.txt) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs082" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs082.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs083" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(INF) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs083" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs083.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs084" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(0.0E0) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs084" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs084.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs085" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs085" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs085.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs086" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(INF) to xs:string.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs086" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs086.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs087" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(0.0E0) to xs:string.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs087" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs087.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs088" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:string.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs088" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs088.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs089" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(-0.0E0) to xs:float.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs089" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs089.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs090" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(NaN) to xs:float.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs090" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs090.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs091" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(1e-5) to xs:float.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs091" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs091.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs092" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(-10000000) to xs:float.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs092" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs092.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs093" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs093" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs094" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(-0.0E0) to xs:double.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs094" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs094.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs095" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(NaN) to xs:double.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs095" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs095.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs096" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(1e-5) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs096" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs096.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs097" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(-10000000) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs097" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs097.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs098" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs098" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs099" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(-0.0E0) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs099" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs100" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(NaN) to xs:decimal.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs100" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs101" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(1e-5) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs101" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs102" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(5.5432) to xs:decimal.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs102" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs102.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs103" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:decimal.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs103" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs104" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(-0.0E0) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs104" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs105" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(NaN) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs105" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs106" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(1e-5) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs106" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs107" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(-1.1234) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs107" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs108" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:integer.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs108" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs109" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(P1Y2M3DT10H30M23S) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs109" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs109.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs110" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(-P1Y1M1DT1H1M1.123S) to xs:duration.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs110" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs110.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs111" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs111" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs112" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(-P1Y1M1DT1H1M1.123S) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs112" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs113" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(P24M) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs113" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs113.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs114" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(-P21M) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs114" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs114.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs115" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs115" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs116" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(-P1Y1M1DT1H1M1.123S) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs116" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs117" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(P3DT10H30M) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs117" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs117.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs118" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(-PT100M) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs118" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs118.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs119" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs119" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs120" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(1999-05-31T13:20:00) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs120" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs120.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs121" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(-1999-05-31T13:20:00+14:00) to xs:dateTime.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs121" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs121.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs122" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(2000-01-16T00:00:00Z) to xs:dateTime.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs122" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs122.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs123" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:dateTime.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs123" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs124" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(13:20:00-05:00) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs124" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs124.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs125" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(13:20:02.123) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs125" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs125.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs126" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(13:20:00Z) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs126" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs126.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs127" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs127" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs128" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(1999-05-31) to xs:date.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs128" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs128.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs129" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(-0012-12-03-05:00) to xs:date.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs129" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs129.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs130" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(1999-05-31Z) to xs:date.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs130" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs130.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs131" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:date.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs131" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs132" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(1999-05) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs132" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs132.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs133" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(-0012-12-05:00) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs133" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs133.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs134" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(1999-05Z) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs134" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs134.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs135" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs135" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs136" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(1999) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs136" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs136.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs137" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(-0012-05:00) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs137" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs137.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs138" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(1999Z) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs138" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs138.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs139" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs139" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs140" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(--05-31) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs140" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs140.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs141" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(--05-31+14:00) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs141" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs141.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs142" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(--05-31Z) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs142" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs142.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs143" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs143" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs144" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(---31) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs144" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs144.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs145" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(---03-05:00) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs145" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs145.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs146" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(---31Z) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs146" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs146.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs147" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs147" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs148" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(--05) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs148" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs148.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs149" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(--12-05:00) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs149" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs149.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs150" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(--05Z) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs150" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs150.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs151" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs151" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs152" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(0.0) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs152" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs153" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(0) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs153" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs153.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs154" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs154" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs154.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs155" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs155" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs155.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs156" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(00000000) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs156" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs156.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs157" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(D74D35D35D35) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs157" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs157.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs158" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs158" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs159" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:string(010010101) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs159" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs160" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(0fb7) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs160" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs160.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs161" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(D74D35D35D35) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs161" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs161.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs162" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(http://www.example.com/~b%C3%A9b%C3%A9) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs162" date="2006-01-27-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs162.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs163" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(true) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs163" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs163.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs164" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:string(http://www.ietf.org/rfc/rfc2396.txt) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs164" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs164.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs165" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(1e5) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs165" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs165.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs166" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(-INF) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs166" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs166.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs167" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(-0.0E0) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs167" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs167.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs168" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(NaN) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs168" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs168.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs169" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs169" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs169.txt</output-file>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs170" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(-1.75e-3) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs170" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs170.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs171" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(INF) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs171" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs171.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs172" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(-0.0E0) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs172" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs172.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs173" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(-INF) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs173" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs173.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs174" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(-0.0E0) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs174" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs174.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs175" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs175" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs175.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs176" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(1e5) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs176" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs176.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs177" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(-1.75e-3) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs177" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs177.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs178" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(-0.0E0) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs178" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs178.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs179" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(1e5) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs179" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs179.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs180" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(INF) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs180" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs181" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(-1.75e-3) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs181" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs182" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs182" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs183" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs183" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs184" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs184" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs185" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs185" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs186" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs186" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs187" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs187" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs188" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs188" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs189" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs189" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs190" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs190" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs191" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs191" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs192" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(-0.0E0) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs192" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs192.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs193" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(1e5) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs193" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs193.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs194" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(-INF) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs194" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs194.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs195" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:float(NaN) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs195" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs195.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs196" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs196" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs197" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs197" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs198" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:float(5.4321E-100) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs198" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs199" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs199" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs199.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs200" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(INF) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs200" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs200.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs201" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(1e8) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs201" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs201.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs202" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(INF) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs202" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs202.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs203" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(-0.0E0) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs203" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs203.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs204" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(5.4321E-1001) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs204" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs204.txt</output-file>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs205" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs205" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs205.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs206" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(-1.75e-3) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs206" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs206.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs207" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(NaN) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs207" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs207.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs208" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs208" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs208.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs209" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(INF) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs209" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs209.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs210" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(-0.0E0) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs210" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs210.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs211" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(5.4321E-1001) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs211" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs211.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs212" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(-1.75e-3) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs212" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs212.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs213" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(INF) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs213" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs214" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(-0.0E0) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs214" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs214.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs215" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs215" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs215.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs216" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(-1.75e-3) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs216" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs216.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs217" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(INF) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs217" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs218" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(NaN) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs218" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs219" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs219" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs220" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs220" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs221" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs221" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs222" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs222" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs223" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs223" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs224" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs224" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs225" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs225" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs226" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs226" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs227" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs227" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs228" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs228" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs229" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs229" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs230" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs230" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs230.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs231" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs231" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs232" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs232" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs233" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:double(1e5) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs233" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs234" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs234" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs234.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs235" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs235" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs235.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs236" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs236" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs236.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs237" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs237" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs237.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs238" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs238" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs238.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs239" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs239" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs239.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs240" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:decimal(5.5432) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs240" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs240.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs241" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs241" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs242" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs242" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs243" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs243" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs244" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs244" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs245" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs245" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs246" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs246" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs247" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs247" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs248" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs248" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs249" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs249" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs250" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs250" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs251" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs251" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs252" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs252" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs252.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs253" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs253" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs254" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs254" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs255" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:decimal(-1.1234) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs255" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs256" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:integer(1) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs256" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs256.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs257" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs257" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs257.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs258" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs258" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs258.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs259" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs259" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs259.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs260" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs260" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs260.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs261" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs261" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs261.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs262" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs262" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs263" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs263" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs264" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs264" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs265" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs265" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs266" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs266" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs267" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs267" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs268" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs268" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs269" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs269" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs270" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs270" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs271" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs271" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs272" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs272" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs273" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs273" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs273.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs274" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs274" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs275" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs275" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs276" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:integer(-100) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs276" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs277" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs277" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs277.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs278" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs278" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs278.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs279" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs279" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs280" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs280" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs281" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs281" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs282" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs282" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs283" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs283" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs283.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs284" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:duration(PT10H) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs284" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs284.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs285" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs285" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs285.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs286" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:duration(PT10H) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs286" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs286.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs287" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:duration(P24M) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs287" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs287.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs288" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs288" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs288.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs289" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:duration(PT10H) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs289" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs289.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs290" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:duration(P24M) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs290" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs290.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs291" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs291" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs292" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs292" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs293" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs293" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs294" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs294" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs295" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs295" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs296" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs296" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs297" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs297" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs298" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs298" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs299" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs299" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs300" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs300" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs301" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs301" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs302" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:duration(P1Y2M3DT10H30M23S) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs302" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs303" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs303" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs303.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs304" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs304" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs304.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs305" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs305" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs306" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs306" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs307" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs307" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs308" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs308" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs309" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs309" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs309.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs310" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs310" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs310.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs311" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(-P21M) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs311" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs311.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs312" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs312" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs312.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs313" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs313" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs314" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs314" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs315" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs315" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs316" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs316" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs317" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs317" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs318" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs318" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs319" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs319" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs320" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs320" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs321" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs321" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs322" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs322" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs323" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs323" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs324" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:yearMonthDuration(P1Y2M) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs324" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs325" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs325" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs325.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs326" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(-PT100M) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs326" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs326.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs327" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs327" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs327.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs328" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(-PT100M) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs328" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs328.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs329" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs329" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs330" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs330" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs331" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs331" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs332" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs332" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs333" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs333" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs333.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs334" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(PT24H) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs334" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs334.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs335" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(-PT100M) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs335" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs335.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs336" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs336" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs336.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs337" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs337" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs337.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs338" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P14D) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs338" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs338.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs339" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(-PT100M) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs339" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs339.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs340" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs340" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs341" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs341" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs342" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs342" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs343" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs343" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs344" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs344" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs345" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs345" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs346" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs346" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs347" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs347" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs348" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs348" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs349" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs349" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs350" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs350" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs351" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dayTimeDuration(P3DT10H30M) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs351" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs352" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs352" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs352.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs353" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(-1999-05-31T13:20:00+14:00) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs353" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs353.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs354" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs354" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs354.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs355" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(-1999-05-31T13:20:00+14:00) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs355" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs355.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs356" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs356" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs357" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(2000-01-16T00:00:00Z) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs357" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs358" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs358" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs359" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs359" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs360" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs360" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs361" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs361" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs362" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs362" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs363" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs363" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs363.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs364" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs364" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs364.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs365" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(-1999-05-31T13:20:00+14:00) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs365" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs365.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs366" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs366" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs366.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs367" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(-1999-05-31T13:20:00+14:00) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs367" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs367.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs368" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs368" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs368.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs369" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(-1999-05-31T13:20:00+14:00) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs369" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs369.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs370" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs370" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs370.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs371" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(-1999-05-31T13:20:00+14:00) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs371" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs371.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs372" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs372" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs372.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs373" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(-1999-05-31T13:20:00+14:00) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs373" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs373.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs374" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs374" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs374.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs375" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(-1999-05-31T13:20:00+14:00) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs375" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs375.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs376" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs376" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs376.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs377" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(-1999-05-31T13:20:00+14:00) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs377" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs377.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs378" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs378" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs379" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs379" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs380" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs380" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs381" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:dateTime(1999-05-31T13:20:00) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs381" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs382" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs382" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs382.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs383" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs383" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs383.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs384" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs384" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs385" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs385" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs386" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs386" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs387" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs387" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs388" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs388" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs389" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs389" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs390" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs390" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs391" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs391" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs392" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs392" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs392.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs393" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:02.123) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs393" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs393.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs394" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00Z) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs394" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs394.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs395" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs395" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs396" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs396" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs397" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs397" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs398" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs398" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs399" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs399" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs400" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs400" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs401" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs401" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs402" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs402" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs403" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs403" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs404" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:time(13:20:00-05:00) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs404" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs405" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs405" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs405.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs406" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(-0012-12-03-05:00) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs406" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs406.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs407" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs407" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs407.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs408" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(-0012-12-03-05:00) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs408" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs408.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs409" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs409" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs410" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs410" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs411" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31Z) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs411" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs412" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs412" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs413" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs413" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs414" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs414" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs415" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs415" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs416" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs416" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs416.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs417" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs417" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs418" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs418" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs418.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs419" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(-0012-12-03-05:00) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs419" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs419.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs420" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31Z) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs420" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs420.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs421" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs421" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs421.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs422" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs422" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs422.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs423" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(-0012-12-03-05:00) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs423" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs423.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs424" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31Z) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs424" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs424.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs425" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs425" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs425.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs426" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(-0012-12-03-05:00) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs426" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs426.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs427" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31Z) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs427" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs427.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs428" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31Z) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs428" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs428.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs429" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(-0012-12-03-05:00) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs429" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs429.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs430" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31Z) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs430" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs430.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs431" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs431" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs432" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs432" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs433" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs433" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs434" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:date(1999-05-31) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs434" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs435" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs435" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs435.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs436" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs436" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs436.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs437" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs437" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs438" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs438" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs439" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs439" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs440" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs440" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs441" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs441" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs442" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs442" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs443" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs443" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs444" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs444" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs445" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs445" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs446" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs446" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs447" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs447" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs448" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs448" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs448.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs449" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(-0012-12-05:00) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs449" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs449.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs450" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs450" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs450.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs451" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs451" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs452" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs452" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs453" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs453" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs454" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs454" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs455" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs455" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs456" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs456" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs457" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs457" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs458" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYearMonth(1999-05Z) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs458" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs459" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs459" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs459.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs460" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs460" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs460.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs461" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs461" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs462" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs462" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs463" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs463" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs464" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs464" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs465" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs465" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs466" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs466" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs467" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs467" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs468" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs468" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs469" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs469" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs470" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs470" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs471" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs471" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs471.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs472" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gYear(-0012-05:00) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs472" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs472.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs473" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999Z) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs473" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs473.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs474" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs474" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs475" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs475" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs476" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs476" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs477" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs477" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs478" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs478" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs479" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs479" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs480" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gYear(1999) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs480" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs481" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs481" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs481.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs482" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs482" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs482.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs483" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs483" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs484" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs484" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs485" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs485" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs486" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs486" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs487" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs487" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs488" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs488" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs489" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs489" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs490" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs490" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs491" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs491" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs492" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs492" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs493" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs493" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs494" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs494" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs495" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs495" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs495.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs496" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--12-03-05:00) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs496" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs496.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs497" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31Z) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs497" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs497.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs498" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs498" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs499" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs499" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs500" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs500" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs501" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs501" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs502" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs502" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs503" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonthDay(--05-31) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs503" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs504" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs504" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs504.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs505" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs505" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs505.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs506" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs506" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs507" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs507" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs508" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs508" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs509" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs509" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs510" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs510" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs511" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs511" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs512" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs512" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs513" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs513" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs514" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs514" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs515" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs515" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs516" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs516" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs517" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs517" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs518" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs518" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs519" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs519" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs519.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs520" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---03-05:00) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs520" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs520.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs521" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31Z) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs521" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs521.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs522" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs522" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs523" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs523" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs524" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs524" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs525" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs525" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs526" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gDay(---31) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs526" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs527" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs527" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs527.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs528" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs528" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs528.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs529" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs529" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs530" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs530" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs531" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs531" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs532" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs532" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs533" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs533" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs534" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs534" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs535" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs535" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs536" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs536" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs537" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs537" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs538" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs538" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs539" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs539" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs540" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs540" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs541" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs541" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs542" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs542" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs543" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs543" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs543.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs544" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--12-05:00) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs544" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs544.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs545" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05Z) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs545" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs545.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs546" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs546" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs547" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs547" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs548" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs548" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs549" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:gMonth(--05) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs549" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs550" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs550" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs550.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs551" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs551" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs551.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs552" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs552" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs552.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs553" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:boolean(false) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs553" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs553.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs554" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs554" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs554.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs555" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:boolean(false) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs555" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs555.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs556" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs556" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs556.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs557" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:boolean(false) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs557" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs557.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs558" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs558" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs558.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs559" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:boolean(false) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs559" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs559.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs560" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs560" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs561" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs561" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs562" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs562" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs563" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs563" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs564" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs564" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs565" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs565" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs566" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs566" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs567" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs567" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs568" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs568" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs569" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs569" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs570" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs570" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs571" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs571" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs571.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs572" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:boolean(false) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs572" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs572.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs573" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs573" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs574" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs574" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs575" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:boolean(true) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs575" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs576" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(01001010) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs576" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs576.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs577" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(0FB7) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs577" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs577.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs578" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(01001010) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs578" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs578.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs579" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(0FB7) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs579" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs579.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs580" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs580" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs581" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs581" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs582" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs582" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs583" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs583" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs584" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs584" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs585" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs585" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs586" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs586" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs587" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs587" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs588" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs588" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs589" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs589" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs590" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs590" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs591" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs591" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs592" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs592" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs593" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs593" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs594" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs594" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs595" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs595" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs596" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(01001010) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs596" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs596.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs597" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(0FB7) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs597" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs597.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs598" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(00000000) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs598" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs598.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs599" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs599" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs599.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs600" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(aA+zZ/09) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs600" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs600.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs601" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(0FB7) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs601" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs601.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs602" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:base64Binary(10010101) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs602" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs603" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs603" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs603.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs604" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs604" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs604.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs605" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs605" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs606" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs606" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs607" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs607" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs608" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs608" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs609" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs609" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs610" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs610" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs611" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs611" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs612" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs612" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs613" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs613" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs614" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs614" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs615" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs615" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs616" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs616" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs617" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs617" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs618" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs618" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs619" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs619" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs620" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs620" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs621" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs621" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs621.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs622" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(0fb7) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs622" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs622.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs623" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs623" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs623.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs624" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(d74d35d35d35) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs624" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs624.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs625" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:hexBinary(D74D35D35D35) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs625" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs626" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:untypedAtomic.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs626" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs626.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs627" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:string.</description>
      <spec-citation section-number="17.1.2" spec="FuncOps" section-title="Casting to xs:string and xs:untypedAtomic" section-pointer="casting-to-string"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs627" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs627.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs628" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:float.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs628" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs629" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:double.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs629" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs630" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:decimal.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs630" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs631" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:integer.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs631" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs632" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:duration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs632" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs633" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:yearMonthDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs633" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs634" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:dayTimeDuration.</description>
      <spec-citation section-number="17.1.4" spec="FuncOps" section-title="Casting to duration types" section-pointer="casting-to-durations"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs634" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs635" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:dateTime.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs635" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs636" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:time.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs636" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs637" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:date.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs637" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs638" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:gYearMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs638" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs639" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:gYear.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs639" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs640" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:gMonthDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs640" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs641" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:gDay.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs641" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs642" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:gMonth.</description>
      <spec-citation section-number="17.1.5" spec="FuncOps" section-title="Casting to date and time types" section-pointer="casting-to-datetimes"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs642" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs643" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:boolean.</description>
      <spec-citation section-number="17.1.6" spec="FuncOps" section-title="Casting to xs:boolean" section-pointer="casting-boolean"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs643" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs644" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:base64Binary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs644" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs645" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:hexBinary.</description>
      <spec-citation section-number="17.1.7" spec="FuncOps" section-title="Casting to xs:base64Binary and xs:hexBinary" section-pointer="casting-to-binary"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <query name="CastAs645" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs646" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Joanne Tong">
      <description>Try casting xs:anyURI(http://www.ietf.org/rfc/rfc2396.txt) to xs:anyURI.</description>
      <spec-citation section-number="17.1.8" spec="FuncOps" section-title="Casting to xs:anyURI" section-pointer="casting-to-anyuri"/>
      <spec-citation section-number="3.12.3" spec="XQuery" section-title="Cast" section-pointer="id-cast"/>
      <spec-citation section-number="5.1" spec="FuncOps" section-title="Constructor Functions for XML Schema Built-in Types" section-pointer="constructor-functions-for-xsd-types"/>
      <query name="CastAs646" date="2005-07-21-07:00"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs646.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs647" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting large string (of numbers) as an xs:decimal. May have multiple outcomes.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs647" date="2006-03-29"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs647.txt</output-file>
      <expected-error>FOCA0006</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastAs648" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting a string (of numbers) as an xs:nonPositiveInteger.</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs648" date="2006-07-10"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs648.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs649" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting a string (of numbers) as an xs:long</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs649" date="2006-07-10"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs649.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs650" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting a string (of numbers) as an xs:nonNegativeInteger</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs650" date="2006-07-10"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs650.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs651" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting a string (of numbers) as an xs:negativeInteger</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs651" date="2006-07-10"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs651.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs652" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting a string (of numbers) as an xs:int</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs652" date="2006-07-10"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs652.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs653" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting a string (of numbers) as an xs:unsignedLong</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs653" date="2006-07-10"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs653.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs654" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting a string (of numbers) as an xs:positiveInteger</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs654" date="2006-07-10"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs654.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs655" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting a string (of numbers) as an xs:short</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs655" date="2006-07-10"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs655.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs656" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting a string (of numbers) as an xs:unsignedInt</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs656" date="2006-07-10"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs656.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs657" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting a string (of numbers) as an xs:byte</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs657" date="2006-07-10"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs657.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs658" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting a string (of numbers) as an xs:unsignedShort</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs658" date="2006-07-10"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs658.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="CastAs659" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez">
      <description>Try casting a string (of numbers) as an xs:unsignedByte</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs659" date="2006-07-10"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs659.txt</output-file>
   </test-case>
   <test-case name="CastAs660" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Try casting an xs:long as an xs:short.</description>
      <spec-citation section-number="17.5" spec="FuncOps" section-title="Casting across the type hierarchy" section-pointer="casting-across-hierarchy"/>
      <query name="CastAs660" date="2006-07-11"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">truevalue.txt</output-file>
   </test-case>
   <test-case name="CastAs661" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Try casting an xs:short as an xs:long.</description>
      <spec-citation section-number="17.5" spec="FuncOps" section-title="Casting across the type hierarchy" section-pointer="casting-across-hierarchy"/>
      <query name="CastAs661" date="2006-07-11"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">truevalue.txt</output-file>
   </test-case>
   <test-case name="CastAs662" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Try casting an xs:nonPositiveInteger as an xs:NegativeInteger.</description>
      <spec-citation section-number="17.5" spec="FuncOps" section-title="Casting across the type hierarchy" section-pointer="casting-across-hierarchy"/>
      <query name="CastAs662" date="2006-07-11"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">truevalue.txt</output-file>
   </test-case>
   <test-case name="CastAs663" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Try casting an xs:nonNegativeInteger as an xs:positiveInteger.</description>
      <spec-citation section-number="17.5" spec="FuncOps" section-title="Casting across the type hierarchy" section-pointer="casting-across-hierarchy"/>
      <query name="CastAs663" date="2006-07-11"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">truevalue.txt</output-file>
   </test-case>
   <test-case name="CastAs664" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Try casting an xs:short as an xs:unsignedShort.</description>
      <spec-citation section-number="17.5" spec="FuncOps" section-title="Casting across the type hierarchy" section-pointer="casting-across-hierarchy"/>
      <query name="CastAs664" date="2006-07-11"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">truevalue.txt</output-file>
   </test-case>
   <test-case name="CastAs665" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Try casting an xs:int as an xs:long.</description>
      <spec-citation section-number="17.5" spec="FuncOps" section-title="Casting across the type hierarchy" section-pointer="casting-across-hierarchy"/>
      <query name="CastAs665" date="2006-07-11"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">truevalue.txt</output-file>
   </test-case>
   <test-case name="CastAs666" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Try casting an xs:long as an xs:int.</description>
      <spec-citation section-number="17.5" spec="FuncOps" section-title="Casting across the type hierarchy" section-pointer="casting-across-hierarchy"/>
      <query name="CastAs666" date="2006-07-11"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">truevalue.txt</output-file>
   </test-case>
   <test-case name="CastAs667" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Try casting an xs:unsignedShort as an xs:unsignedInt.</description>
      <spec-citation section-number="17.5" spec="FuncOps" section-title="Casting across the type hierarchy" section-pointer="casting-across-hierarchy"/>
      <query name="CastAs667" date="2006-07-11"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">truevalue.txt</output-file>
   </test-case>
   <test-case name="CastAs668" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Try casting an xs:unsignedInt as an xs:unsignedShort.</description>
      <spec-citation section-number="17.5" spec="FuncOps" section-title="Casting across the type hierarchy" section-pointer="casting-across-hierarchy"/>
      <query name="CastAs668" date="2006-07-11"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">truevalue.txt</output-file>
   </test-case>
   <test-case name="CastAs669" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Try casting an xs:byte as an xs:unsignedByte.</description>
      <spec-citation section-number="17.5" spec="FuncOps" section-title="Casting across the type hierarchy" section-pointer="casting-across-hierarchy"/>
      <query name="CastAs669" date="2006-07-11"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">truevalue.txt</output-file>
   </test-case>
   <test-case name="CastAs670" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Evaluates overflow of an xs:date time (error FODT0001). It adds 9,000 years to a date created in 2006.  Some implementations may return a value</description>
      <spec-citation section-number="17.1.1" spec="FuncOps" section-title="Casting from xs:string and xs:untypedAtomic" section-pointer="casting-from-strings"/>
      <query name="CastAs670" date="2006-07-12"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastAs670.txt</output-file>
      <expected-error>FODT0001</expected-error>
   </test-case>
   <test-case name="CastAs671" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Evaluates Casting a string into an ENTITY.</description>
      <spec-citation section-number="17.4.1" spec="FuncOps" section-title="Casting to xs:ENTITY" section-pointer="casting-to-ENTITY"/>
      <query name="CastAs671" date="2006-07-13"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">truevalue.txt</output-file>
   </test-case>
   <test-case name="CastAs672" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Carmelo Montanez" is-XPath2="false">
      <description>Evaluates casting a sequence of strings into an ENTITY.</description>
      <spec-citation section-number="17.4.1" spec="FuncOps" section-title="Casting to xs:ENTITY" section-pointer="casting-to-ENTITY"/>
      <query name="CastAs672" date="2006-07-13"/>
      <input-file variable="input-context" role="principal-data">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="CastAs673" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Nicolae Brinza">
      <description>Try to cast a variable to xs:QName.</description>
      <query name="CastAs673" date="2009-04-01"/>
      <input-file variable="input-context" role="principal-data">acme_corp</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastFOCA0001-1" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Carmelo Montanez">
      <description>A value too big to be casted as xs:decimal. May process it or generate error.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="CastFOCA0001-1" date="2005-10-03"/>
      <input-file variable="input-context1" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastFOCA0001-1.txt</output-file>
      <output-file compare="Text" role="principal">CastFOCA0001alt-1.txt</output-file>
      <expected-error>FOCA0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" name="CastFOCA0003-1" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error" Creator="Carmelo Montanez">
      <description>A value too big to be casted as xs:integer. may proccess it or generate error.</description>
      <spec-citation section-number="17.1.3" spec="FuncOps" section-title="Casting to numeric types" section-pointer="casting-to-numerics"/>
      <query name="CastFOCA0003-1" date="2005-10-03"/>
      <input-file variable="input-context1" role="principal-data">emptydoc</input-file>
      <output-file compare="Text" role="principal">CastFOCA0003-1.txt</output-file>
      <output-file compare="Text" role="principal">CastFOCA0003alt-1.txt</output-file>
      <expected-error>FOCA0003</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="parse-error">
      <description>Syntax: only ? is allowed as occurence indicator in 'cast as' expressions.</description>
      <query name="K-SeqExprCast-1" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0003</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-2" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="parse-error">
      <description>Syntax: only ? is allowed as occurence indicator in 'cast as' expressions.</description>
      <query name="K-SeqExprCast-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0003</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-3" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="parse-error">
      <description>Syntax: only ? is allowed as occurence indicator in 'cast as' expressions.</description>
      <query name="K-SeqExprCast-3" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0003</expected-error>
      <expected-error>XPST0051</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-4" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'cast as' where the type is invalid.</description>
      <query name="K-SeqExprCast-4" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0051</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-5" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'cast as' where the type is invalid.</description>
      <query name="K-SeqExprCast-5" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0051</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-6" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'cast as' where the type is invalid.</description>
      <query name="K-SeqExprCast-6" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-7" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'cast as' where the type is invalid.</description>
      <query name="K-SeqExprCast-7" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0051</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-8" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A prefix is used which isn't declared.</description>
      <query name="K-SeqExprCast-8" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0081</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-9" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A type is specified which doesn't exist.</description>
      <query name="K-SeqExprCast-9" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0051</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-10" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="parse-error">
      <description>A non-atomic type is referenced, leading to a syntax error.</description>
      <query name="K-SeqExprCast-10" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0003</expected-error>
      <expected-error>XPST0051</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-11" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="parse-error">
      <description>A non-atomic type is referenced, leading to a syntax error.</description>
      <query name="K-SeqExprCast-11" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0003</expected-error>
      <expected-error>XPST0051</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-12" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="parse-error">
      <description>A non-atomic type is referenced, leading to a syntax error.</description>
      <query name="K-SeqExprCast-12" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0003</expected-error>
      <expected-error>XPST0051</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-13" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="parse-error">
      <description>A non-atomic type is referenced, leading to a syntax error.</description>
      <query name="K-SeqExprCast-13" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0003</expected-error>
      <expected-error>XPST0051</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-14" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `'1' cast as xs:boolean eq true()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-14.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-15" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `'true' cast as xs:boolean eq true()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-16" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `'false' cast as xs:boolean eq false()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-16.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-17" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `'0' cast as xs:boolean eq false()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-17.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-18" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `false() cast as xs:boolean eq false()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-18.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-19" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `not(true() cast as xs:boolean eq false())`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-19.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-20" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:double(3)) eq true()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-20.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-21" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:string(1)) eq true()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-21.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-22" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:integer(3)) eq true()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-22.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-23" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:decimal(3)) eq true()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-23.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-24" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:double(0)) eq false()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-24.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-25" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:string(0)) eq false()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-25.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-26" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:integer(0)) eq false()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-26.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-27" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:decimal(0)) eq false()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-27.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-28" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:decimal(0.0)) eq false()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-28.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-29" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(+0) eq false()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-29.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-30" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(-0) eq false()`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-30.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-31" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:double(+0)) eq false()`.</description>
      <query name="K-SeqExprCast-31" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-31.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-32" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:double(-0)) eq false()`.</description>
      <query name="K-SeqExprCast-32" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-32.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-33" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(0.0E0) eq false()`.</description>
      <query name="K-SeqExprCast-33" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-33.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-34" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:double("NaN")) eq false()`.</description>
      <query name="K-SeqExprCast-34" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-34.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-35" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean(xs:float("NaN")) eq false()`.</description>
      <query name="K-SeqExprCast-35" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-35.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-36" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Invalid casting combination, combined with value comparison.</description>
      <query name="K-SeqExprCast-36" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-37" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `false() cast as xs:string eq "false"`.</description>
      <query name="K-SeqExprCast-37" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-37.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-38" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `true() cast as xs:string eq "true"`.</description>
      <query name="K-SeqExprCast-38" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-38.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-39" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `('1' cast as xs:boolean) cast as xs:string eq 'true'`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-39.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-40" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:boolean('0') cast as xs:string eq 'false'`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-40.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-41" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `" white space left alone" cast as xs:string eq xs:string(" white space left alone")`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-41.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-42" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `(xs:QName("fn:local-name") cast as xs:string) eq "fn:local-name"`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-42.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-43" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `(xs:QName("local-name") cast as xs:string) eq "local-name"`.</description>
      <query name="K-SeqExprCast-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-SeqExprCast-43.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-44" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:anyURI('example.com/')) eq 'example.com/'`.</description>
      <query name="K-SeqExprCast-44" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-44.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-45" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:double(3)) eq '3'`.</description>
      <query name="K-SeqExprCast-45" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-45.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-46" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:string(3)) eq '3'`.</description>
      <query name="K-SeqExprCast-46" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-46.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-47" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:integer(3)) eq '3'`.</description>
      <query name="K-SeqExprCast-47" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-47.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-48" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:decimal(3)) eq '3'`.</description>
      <query name="K-SeqExprCast-48" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-48.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-49" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `"untyped a " cast as xs:untypedAtomic eq xs:untypedAtomic("untyped a ")`.</description>
      <query name="K-SeqExprCast-49" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-49.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-50" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `false() cast as xs:untypedAtomic eq xs:untypedAtomic("false")`.</description>
      <query name="K-SeqExprCast-50" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-50.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-51" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `true() cast as xs:untypedAtomic eq xs:untypedAtomic("true")`.</description>
      <query name="K-SeqExprCast-51" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-51.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-52" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `false() cast as xs:untypedAtomic instance of xs:untypedAtomic`.</description>
      <query name="K-SeqExprCast-52" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-52.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-53" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `true() cast as xs:untypedAtomic instance of xs:untypedAtomic`.</description>
      <query name="K-SeqExprCast-53" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-53.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-54" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `(xs:QName("local-name") cast as xs:untypedAtomic) eq xs:untypedAtomic("local-name")`.</description>
      <query name="K-SeqExprCast-54" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-54.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-55" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `(xs:QName("fn:local-name") cast as xs:untypedAtomic) eq xs:untypedAtomic("fn:local-name")`.</description>
      <query name="K-SeqExprCast-55" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-55.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-56" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:untypedAtomic(xs:anyURI('example.com/')) eq 'example.com/'`.</description>
      <query name="K-SeqExprCast-56" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-56.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-57" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:untypedAtomic(xs:double(3)) eq '3'`.</description>
      <query name="K-SeqExprCast-57" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-57.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-58" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:untypedAtomic(xs:string(3)) eq '3'`.</description>
      <query name="K-SeqExprCast-58" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-58.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-59" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:untypedAtomic(xs:integer(3)) eq '3'`.</description>
      <query name="K-SeqExprCast-59" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-59.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-60" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:untypedAtomic(xs:decimal(3)) eq '3'`.</description>
      <query name="K-SeqExprCast-60" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-60.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-61" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting to xs:notation is not allowed.</description>
      <query name="K-SeqExprCast-61" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-62" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting to xs:notation is not allowed.</description>
      <query name="K-SeqExprCast-62" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-63" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting to xs:notation is not allowed.</description>
      <query name="K-SeqExprCast-63" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
      <expected-error>XPST0005</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-64" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting to xs:notation is not allowed.</description>
      <query name="K-SeqExprCast-64" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
      <expected-error>XPST0005</expected-error>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-65" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting to xs:notation is not allowed.</description>
      <query name="K-SeqExprCast-65" 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-SeqExprCast-66" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting to xs:notation is not allowed.</description>
      <query name="K-SeqExprCast-66" 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-SeqExprCast-67" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting to xs:QName where the cardinality is wrong.</description>
      <query name="K-SeqExprCast-67" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>XPST0005</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-68" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Input when casting to xs:QName must be a string literal.</description>
      <query name="K-SeqExprCast-68" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-69" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Input when casting to xs:QName must be a string literal.</description>
      <query name="K-SeqExprCast-69" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
      <expected-error>XPDY0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-70" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting a xs:QName value to xs:QName is possible.</description>
      <query name="K-SeqExprCast-70" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-70.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-71" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting xs:untypedAtomic to xs:QName is an error.</description>
      <query name="K-SeqExprCast-71" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-72" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `"example.com/" cast as xs:anyURI eq xs:anyURI('example.com/')`.</description>
      <query name="K-SeqExprCast-72" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-72.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-73" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:untypedAtomic("example.com/") cast as xs:anyURI eq xs:anyURI('example.com/')`.</description>
      <query name="K-SeqExprCast-73" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-73.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-74" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:anyURI("example.com/") cast as xs:anyURI eq xs:anyURI('example.com/')`.</description>
      <query name="K-SeqExprCast-74" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-74.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-75" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:double(3) eq 3`.</description>
      <query name="K-SeqExprCast-75" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-75.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-76" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:double(3.1) eq 3.1`.</description>
      <query name="K-SeqExprCast-76" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-76.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-77" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:double(6) instance of xs:double`.</description>
      <query name="K-SeqExprCast-77" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-77.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-78" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:double("INF")) eq "INF"`.</description>
      <query name="K-SeqExprCast-78" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-78.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-79" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:double("-INF")) eq "-INF"`.</description>
      <query name="K-SeqExprCast-79" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-79.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-80" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:float(3) eq 3`.</description>
      <query name="K-SeqExprCast-80" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-80.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-81" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:float(3.1) eq 3.1`.</description>
      <query name="K-SeqExprCast-81" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-81.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-82" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:float(6) instance of xs:float`.</description>
      <query name="K-SeqExprCast-82" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-82.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-83" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:float("INF")) eq "INF"`.</description>
      <query name="K-SeqExprCast-83" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-83.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-84" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:float("-INF")) eq "-INF"`.</description>
      <query name="K-SeqExprCast-84" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-84.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-85" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:decimal(3) eq 3`.</description>
      <query name="K-SeqExprCast-85" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-85.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-86" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:decimal(3.1) eq 3.1`.</description>
      <query name="K-SeqExprCast-86" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-86.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-87" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:decimal(6) instance of xs:decimal`.</description>
      <query name="K-SeqExprCast-87" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-87.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-88" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:integer(3) eq 3`.</description>
      <query name="K-SeqExprCast-88" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-88.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-89" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:integer(3.1) eq 3`.</description>
      <query name="K-SeqExprCast-89" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-89.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-90" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Test that when casting xs:decimal to xs:integer that conversion happens.</description>
      <query name="K-SeqExprCast-90" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-90.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-91" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:integer(6) instance of xs:integer`.</description>
      <query name="K-SeqExprCast-91" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-91.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-92" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:integer(6) instance of xs:decimal`.</description>
      <query name="K-SeqExprCast-92" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-92.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-93" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:hexBinary("FFF")`.</description>
      <query name="K-SeqExprCast-93" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-94" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:hexBinary("FFxF")`.</description>
      <query name="K-SeqExprCast-94" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-95" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:hexBinary("0xFF")`.</description>
      <query name="K-SeqExprCast-95" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-96" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:hexBinary("F")`.</description>
      <query name="K-SeqExprCast-96" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-97" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:hexBinary("x")`.</description>
      <query name="K-SeqExprCast-97" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-98" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `exists(xs:hexBinary("Ab08bcFFAA08b6"))`.</description>
      <query name="K-SeqExprCast-98" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-98.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-99" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `exists(xs:hexBinary("FF"))`.</description>
      <query name="K-SeqExprCast-99" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-99.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-100" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `exists(xs:hexBinary("aa"))`.</description>
      <query name="K-SeqExprCast-100" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-100.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-101" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `count(xs:hexBinary(xs:hexBinary("03"))) eq 1`.</description>
      <query name="K-SeqExprCast-101" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-101.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-102" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary("aa")) eq "AA"`.</description>
      <query name="K-SeqExprCast-102" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-102.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-103" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary("0a")) eq "0A"`.</description>
      <query name="K-SeqExprCast-103" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-103.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-104" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary("a0")) eq "A0"`.</description>
      <query name="K-SeqExprCast-104" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-104.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-105" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary("a4")) eq "A4"`.</description>
      <query name="K-SeqExprCast-105" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-105.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-106" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary("c0")) eq "C0"`.</description>
      <query name="K-SeqExprCast-106" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-106.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-107" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary("fA")) eq "FA"`.</description>
      <query name="K-SeqExprCast-107" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-107.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-108" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary("10")) eq "10"`.</description>
      <query name="K-SeqExprCast-108" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-108.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-109" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary("031a34123b")) eq "031A34123B"`.</description>
      <query name="K-SeqExprCast-109" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-109.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-110" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary("03")) eq "03"`.</description>
      <query name="K-SeqExprCast-110" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-110.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-111" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary("0c")) eq "0C"`.</description>
      <query name="K-SeqExprCast-111" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-111.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-112" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary("0b")) eq "0B"`.</description>
      <query name="K-SeqExprCast-112" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-112.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-113" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary("3a")) eq "3A"`.</description>
      <query name="K-SeqExprCast-113" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-113.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-114" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>An empty string is a valid lexical representation for xs:hexBinary, and means 'no data.</description>
      <query name="K-SeqExprCast-114" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-114.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-115" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An invalid lexical representation for xs:base64Binary.</description>
      <query name="K-SeqExprCast-115" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-116" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An invalid lexical representation for xs:base64Binary.</description>
      <query name="K-SeqExprCast-116" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-117" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An invalid lexical representation for xs:base64Binary.</description>
      <query name="K-SeqExprCast-117" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-118" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An invalid lexical representation for xs:base64Binary.</description>
      <query name="K-SeqExprCast-118" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-119" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An invalid lexical representation for xs:base64Binary.</description>
      <query name="K-SeqExprCast-119" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-120" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An invalid lexical representation for xs:base64Binary.</description>
      <query name="K-SeqExprCast-120" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-121" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An invalid lexical representation for xs:base64Binary.</description>
      <query name="K-SeqExprCast-121" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-122" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An invalid lexical representation for xs:base64Binary.</description>
      <query name="K-SeqExprCast-122" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-123" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An invalid lexical representation for xs:base64Binary.</description>
      <query name="K-SeqExprCast-123" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-124" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An invalid lexical representation for xs:base64Binary.</description>
      <query name="K-SeqExprCast-124" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-125" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An invalid lexical representation for xs:base64Binary.</description>
      <query name="K-SeqExprCast-125" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-126" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary("0w==")) eq "0w=="`.</description>
      <query name="K-SeqExprCast-126" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-126.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-127" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary("aaa a")) eq "aaaa"`.</description>
      <query name="K-SeqExprCast-127" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-127.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-128" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary("frfhforlksid7453")) eq "frfhforlksid7453"`.</description>
      <query name="K-SeqExprCast-128" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-128.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-129" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>If the last tetragram ends in '==' then the previous character must be one of [AQgw].</description>
      <query name="K-SeqExprCast-129" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-130" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary(xs:hexBinary("03"))) eq "Aw=="`.</description>
      <query name="K-SeqExprCast-130" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-130.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-131" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary(xs:hexBinary("0f3c"))) eq "Dzw="`.</description>
      <query name="K-SeqExprCast-131" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-131.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-132" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary(xs:hexBinary("12"))) eq "Eg=="`.</description>
      <query name="K-SeqExprCast-132" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-132.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-133" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary(xs:hexBinary("3B"))) eq "Ow=="`.</description>
      <query name="K-SeqExprCast-133" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-133.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-134" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary(xs:hexBinary("69A69A"))) eq "aaaa"`.</description>
      <query name="K-SeqExprCast-134" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-134.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-135" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary(xs:hexBinary("F43D1234ce8f"))) eq "9D0SNM6P"`.</description>
      <query name="K-SeqExprCast-135" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-135.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-136" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary(xs:hexBinary("f0"))) eq "8A=="`.</description>
      <query name="K-SeqExprCast-136" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-136.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-137" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary(xs:hexBinary("ffaabbddcceeff0134f001d8ca9bc77899c83e6f7d"))) eq "/6q73czu/wE08AHYypvHeJnIPm99"`.</description>
      <query name="K-SeqExprCast-137" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-137.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-138" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary(xs:hexBinary("ffff"))) eq "//8="`.</description>
      <query name="K-SeqExprCast-138" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-138.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-139" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:base64Binary(xs:hexBinary("ffff34564321deac9876"))) eq "//80VkMh3qyYdg=="`.</description>
      <query name="K-SeqExprCast-139" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-139.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-140" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary(xs:base64Binary("Ow=="))) eq "3B"`.</description>
      <query name="K-SeqExprCast-140" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-140.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-141" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `xs:string(xs:hexBinary(xs:base64Binary("aaa a"))) eq "69A69A"`.</description>
      <query name="K-SeqExprCast-141" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-141.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-142" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>An empty string is a valid lexical representation for xs:base64Binary, and means 'no data.</description>
      <query name="K-SeqExprCast-142" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-142.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-143" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting where the source type typically cannot be determined statically.</description>
      <query name="K-SeqExprCast-143" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-143.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-144" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A test whose essence is: `(xs:decimal(remove((3e3, 1.1), 1))) eq 1.1`.</description>
      <query name="K-SeqExprCast-144" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-144.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-145" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting where the cardinality of the source value is wrong.</description>
      <query name="K-SeqExprCast-145" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-147" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A preceding plus sign('+') is disallowed for xs:duration.</description>
      <query name="K-SeqExprCast-147" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-148" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No zone offset is allowed for xs:duration.</description>
      <query name="K-SeqExprCast-148" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-149" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A preceding 'P' must always exist in a xs:duration value.</description>
      <query name="K-SeqExprCast-149" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-150" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>At least one number and its designator must be present in a xs:duration value.</description>
      <query name="K-SeqExprCast-150" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-151" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>At least one number and its designator must be present in a xs:duration value, a minus sign is insufficient.</description>
      <query name="K-SeqExprCast-151" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-152" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A 'T' separator in a xs:duration must be followed by time components.</description>
      <query name="K-SeqExprCast-152" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-153" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'P24H' is an invalid lexical representation for xs:duration.</description>
      <query name="K-SeqExprCast-153" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-154" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure that when casting xs:duration to xs:string, preceding zeros are handled properly.</description>
      <query name="K-SeqExprCast-154" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-154.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-155" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure that a negative xs:duration is properly serialized when cast to xs:string.</description>
      <query name="K-SeqExprCast-155" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-155.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-156" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure that when casting xs:duration to xs:string, that empty fields are properly serialized.</description>
      <query name="K-SeqExprCast-156" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-156.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-157" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure that when casting xs:duration to xs:string, that empty components are handled properly.</description>
      <query name="K-SeqExprCast-157" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-157.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-158" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting a xs:duration with zeroed time components to xs:string.</description>
      <query name="K-SeqExprCast-158" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-158.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-159" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The canonical lexical representation for the xs:duration value P365D is 'P365D'.</description>
      <query name="K-SeqExprCast-159" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-159.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-160" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The canonical lexical representation for the xs:duration value P12M is 'P1Y'.</description>
      <query name="K-SeqExprCast-160" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-160.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-161" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The canonical lexical representation for the xs:duration value P31D is 'P31D'.</description>
      <query name="K-SeqExprCast-161" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-161.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-162" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The canonical lexical representation for the xs:duration value P3Y0M is 'P3Y'.</description>
      <query name="K-SeqExprCast-162" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-162.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-163" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Test that a xs:duration value with a small second component is serialized properly.</description>
      <query name="K-SeqExprCast-163" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-163.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-164" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The canonical form of the xs:duration value -PT0S is PT0S.</description>
      <query name="K-SeqExprCast-164" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-164.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-165" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting xs:dayTimeDuration to xs:duration.</description>
      <query name="K-SeqExprCast-165" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-165.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-166" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting xs:yearMonthDuration to xs:duration.</description>
      <query name="K-SeqExprCast-166" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-166.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-167" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a negative xs:dayTimeDuration to xs:duration.</description>
      <query name="K-SeqExprCast-167" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-167.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-168" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a negative xs:yearMonthDuration to xs:duration.</description>
      <query name="K-SeqExprCast-168" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-168.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-169" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A preceding plus sign('+') is disallowed for xs:dayTimeDuration.</description>
      <query name="K-SeqExprCast-169" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-170" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No zone offset is allowed for xs:dayTimeDuration.</description>
      <query name="K-SeqExprCast-170" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-171" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A preceding 'P' must always exist in a xs:dayTimeDuration value.</description>
      <query name="K-SeqExprCast-171" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-172" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>At least one number and its designator must be present in a xs:dayTimeDuration value.</description>
      <query name="K-SeqExprCast-172" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-173" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>At least one number and its designator must be present in a xs:dayTimeDuration value, a minus sign is insufficient.</description>
      <query name="K-SeqExprCast-173" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-174" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A 'T' separator in a xs:dayTimeDuration must be followed by time components.</description>
      <query name="K-SeqExprCast-174" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-175" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure that when casting xs:dayTimeDuration to xs:string, that empty fields are properly serialized.</description>
      <query name="K-SeqExprCast-175" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-175.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-176" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'P1Y12M1D' is an invalid lexical representation for xs:dayTimeDuration.</description>
      <query name="K-SeqExprCast-176" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-177" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'P24M1D' is an invalid lexical representation for xs:dayTimeDuration.</description>
      <query name="K-SeqExprCast-177" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-178" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'PDT3H2M10.001S' is an invalid lexical representation for xs:dayTimeDuration.</description>
      <query name="K-SeqExprCast-178" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-179" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure that when casting xs:dayTimeDuration to xs:string, that preceding zeros are handled properly.</description>
      <query name="K-SeqExprCast-179" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-179.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-180" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure that a negative xs:dayTimeDuration is properly serialized when cast to xs:string.</description>
      <query name="K-SeqExprCast-180" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-180.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-181" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure that when casting xs:dayTimeDuration to xs:string, that empty components are handled properly.</description>
      <query name="K-SeqExprCast-181" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-181.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-182" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting a xs:duration with zeroed time components to xs:string.</description>
      <query name="K-SeqExprCast-182" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-182.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-183" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Test that a xs:dayTimeDuration value with a large day component is serialized properly.</description>
      <query name="K-SeqExprCast-183" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-183.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-184" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Test that a xs:dayTimeDuration value with a large hour component is serialized properly.</description>
      <query name="K-SeqExprCast-184" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-184.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-185" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Test that a xs:dayTimeDuration value with a large minute component is serialized properly.</description>
      <query name="K-SeqExprCast-185" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-185.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-186" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Test that a xs:dayTimeDuration value with a large second component is serialized properly.</description>
      <query name="K-SeqExprCast-186" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-186.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-187" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Test that a xs:dayTimeDuration value with a small second component is serialized properly.</description>
      <query name="K-SeqExprCast-187" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-187.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-188" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The canonical form of the xs:dayTimeDuration value -PT0S is PT0S.</description>
      <query name="K-SeqExprCast-188" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-188.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-189" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting xs:duration to xs:dayTimeDuration.</description>
      <query name="K-SeqExprCast-189" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-189.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-190" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting xs:yearMonthDuration to xs:dayTimeDuration.</description>
      <query name="K-SeqExprCast-190" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-190.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-191" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a negative xs:duration to xs:dayTimeDuration.</description>
      <query name="K-SeqExprCast-191" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-191.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-192" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a negative xs:yearMonthDuration to xs:dayTimeDuration.</description>
      <query name="K-SeqExprCast-192" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-192.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-193" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The canonical lexical representation for the xs:dayTimeDuration value P3D is 'P3D'.</description>
      <query name="K-SeqExprCast-193" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-193.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-194" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A preceding plus sign('+') is disallowed for xs:yearMonthDuration.</description>
      <query name="K-SeqExprCast-194" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-195" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No zone offset is allowed for xs:yearMonthDuration.</description>
      <query name="K-SeqExprCast-195" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-196" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A preceding 'P' must always exist in a xs:yearMonthDuration value.</description>
      <query name="K-SeqExprCast-196" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-197" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>At least one number and its designator must be present in a xs:yearMonthDuration value.</description>
      <query name="K-SeqExprCast-197" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-198" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>At least one number and its designator must be present in a xs:yearMonthDuration value, a minus sign is insufficient.</description>
      <query name="K-SeqExprCast-198" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-199" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A 'T' separator in a xs:yearMonthDuration is not allowed.</description>
      <query name="K-SeqExprCast-199" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-200" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'P731D' is an invalid lexical representation for xs:yearMonthDuration.</description>
      <query name="K-SeqExprCast-200" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-201" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'-P3' is an invalid lexical representation for xs:yearMonthDuration.</description>
      <query name="K-SeqExprCast-201" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-202" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure that when casting xs:yearMonthDuration to xs:string, that preceding zeros are handled properly.</description>
      <query name="K-SeqExprCast-202" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-202.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-203" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure that a negative xs:yearMonthDuration is properly serialized when cast to xs:string.</description>
      <query name="K-SeqExprCast-203" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-203.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-204" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure that when casting xs:yearMonthDuration to xs:string, that empty fields are properly serialized.</description>
      <query name="K-SeqExprCast-204" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-204.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-205" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Test that a xs:yearMonthDuration value with a large year component is serialized properly.</description>
      <query name="K-SeqExprCast-205" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-205.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-206" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Test that a xs:yearMonthDuration value with a large year and month component is serialized properly.</description>
      <query name="K-SeqExprCast-206" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-206.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-207" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The canonical form of the xs:yearMonthDuration value -P0M is P0M.</description>
      <query name="K-SeqExprCast-207" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-207.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-208" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting xs:duration to xs:yearMonthDuration.</description>
      <query name="K-SeqExprCast-208" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-208.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-209" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting xs:dayTimeDuration to xs:yearMonthDuration.</description>
      <query name="K-SeqExprCast-209" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-209.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-210" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a negative xs:duration to xs:yearMonthDuration.</description>
      <query name="K-SeqExprCast-210" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-210.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-211" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a negative xs:dayTimeDuration to xs:yearMonthDuration.</description>
      <query name="K-SeqExprCast-211" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-211.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-213" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:gYear("1")`.</description>
      <query name="K-SeqExprCast-213" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-214" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:gYear("12")`.</description>
      <query name="K-SeqExprCast-214" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-215" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:gYear("867")`.</description>
      <query name="K-SeqExprCast-215" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-216" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:gYear("+1999")`.</description>
      <query name="K-SeqExprCast-216" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-217" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:gYear("+1999")`.</description>
      <query name="K-SeqExprCast-217" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-218" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:gYear("+0000")`.</description>
      <query name="K-SeqExprCast-218" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-219" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:gYear("1111-")`.</description>
      <query name="K-SeqExprCast-219" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-220" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:gYear("1111a")`.</description>
      <query name="K-SeqExprCast-220" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-221" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:gYear("a1111")`.</description>
      <query name="K-SeqExprCast-221" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-222" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:gYear("1 111")`.</description>
      <query name="K-SeqExprCast-222" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-223" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:gYear("1111 Z")`.</description>
      <query name="K-SeqExprCast-223" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-224" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A test whose essence is: `xs:gYear("1111 Z")`.</description>
      <query name="K-SeqExprCast-224" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-225" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gYear: the hour component cannot be -15.</description>
      <query name="K-SeqExprCast-225" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-226" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gYear: the hour component cannot be +15.</description>
      <query name="K-SeqExprCast-226" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-227" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gYear: the minute component cannot be +60.</description>
      <query name="K-SeqExprCast-227" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-228" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gYear: the minute component cannot be -60.</description>
      <query name="K-SeqExprCast-228" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-229" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'02004' is an invalid lexical representation for xs:gYear.</description>
      <query name="K-SeqExprCast-229" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-230" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gYear: the minute field must always be present.</description>
      <query name="K-SeqExprCast-230" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-231" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gYear to xs:string, with timezone '-00:00' is properly handled.</description>
      <query name="K-SeqExprCast-231" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-231.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-232" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gYear to xs:string, with timezone '+00:00' is properly handled.</description>
      <reflects-resolution>http://www.w3.org/Bugs/Public/show_bug.cgi?id=4471</reflects-resolution>
      <query name="K-SeqExprCast-232" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-232.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-233" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gYear to xs:string, with timezone 'Z' is properly handled.</description>
      <query name="K-SeqExprCast-233" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-233.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-234" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'10' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-234" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-235" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'-01' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-235" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-236" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'---321' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-236" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-237" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--01' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-237" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-238" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'E---01' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-238" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-239" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'---01E' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-239" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-240" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'---01-' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-240" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-241" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'---001' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-241" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-242" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'---32' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-242" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-243" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'---00' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-243" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-244" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'---8' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-244" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-245" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+--08' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-245" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-246" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+---08' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-246" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-247" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'---08 Z' is an invalid lexical representation for xs:gDay.</description>
      <query name="K-SeqExprCast-247" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-248" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gDay: the hour component cannot be -15.</description>
      <query name="K-SeqExprCast-248" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-249" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gDay: the hour component cannot be +15.</description>
      <query name="K-SeqExprCast-249" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-250" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gDay: the minute component cannot be +60.</description>
      <query name="K-SeqExprCast-250" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-251" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gDay: the minute component cannot be -60.</description>
      <query name="K-SeqExprCast-251" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-252" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gDay: the minute field must always be present.</description>
      <query name="K-SeqExprCast-252" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-253" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gDay to xs:string, with timezone '-00:00' is properly handled.</description>
      <query name="K-SeqExprCast-253" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-253.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-254" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gDay to xs:string, with timezone '+00:00' is properly handled.</description>
      <reflects-resolution>http://www.w3.org/Bugs/Public/show_bug.cgi?id=4471</reflects-resolution>
      <query name="K-SeqExprCast-254" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-254.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-255" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gDay to xs:string, with timezone 'Z' is properly handled.</description>
      <query name="K-SeqExprCast-255" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-255.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-256" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'-01' is an invalid lexical representation for xs:gMonth.</description>
      <query name="K-SeqExprCast-256" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-257" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'---01' is an invalid lexical representation for xs:gMonth.</description>
      <query name="K-SeqExprCast-257" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-258" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+--01' is an invalid lexical representation for xs:gMonth.</description>
      <query name="K-SeqExprCast-258" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-259" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--13' is an invalid lexical representation for xs:gMonth.</description>
      <query name="K-SeqExprCast-259" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-260" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--431' is an invalid lexical representation for xs:gMonth.</description>
      <query name="K-SeqExprCast-260" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-261" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--11-' is an invalid lexical representation for xs:gMonth.</description>
      <query name="K-SeqExprCast-261" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-262" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--00' is an invalid lexical representation for xs:gMonth.</description>
      <query name="K-SeqExprCast-262" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-263" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gMonth: the hour component cannot be -15.</description>
      <query name="K-SeqExprCast-263" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-264" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gMonth: the hour component cannot be +15.</description>
      <query name="K-SeqExprCast-264" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-265" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gMonth: the minute component cannot be +60.</description>
      <query name="K-SeqExprCast-265" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-266" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gMonth: the minute component cannot be -60.</description>
      <query name="K-SeqExprCast-266" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-267" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gMonth: the minute field must always be present.</description>
      <query name="K-SeqExprCast-267" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-268" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gMonth to xs:string, with timezone '-00:00' is properly handled.</description>
      <query name="K-SeqExprCast-268" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-268.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-269" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gMonth to xs:string, with timezone '+00:00' is properly handled.</description>
      <reflects-resolution>http://www.w3.org/Bugs/Public/show_bug.cgi?id=4471</reflects-resolution>
      <query name="K-SeqExprCast-269" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-269.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-270" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gMonth to xs:string, with timezone 'Z' is properly handled.</description>
      <query name="K-SeqExprCast-270" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-270.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-271" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--1999-12' is an invalid lexical representation for xs:gYearMonth.</description>
      <query name="K-SeqExprCast-271" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-272" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+1999-12' is an invalid lexical representation for xs:gYearMonth.</description>
      <query name="K-SeqExprCast-272" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-273" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'1999-12-' is an invalid lexical representation for xs:gYearMonth.</description>
      <query name="K-SeqExprCast-273" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-274" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'1999--12' is an invalid lexical representation for xs:gYearMonth.</description>
      <query name="K-SeqExprCast-274" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-275" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'1999-13' is an invalid lexical representation for xs:gYearMonth.</description>
      <query name="K-SeqExprCast-275" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-276" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'1999-00' is an invalid lexical representation for xs:gYearMonth.</description>
      <query name="K-SeqExprCast-276" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-277" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'02004-08' is an invalid lexical representation for xs:gYearMonth.</description>
      <query name="K-SeqExprCast-277" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-278" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gYearMonth: the minute field must always be present.</description>
      <query name="K-SeqExprCast-278" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-279" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gYearMonth: the hour component cannot be -15.</description>
      <query name="K-SeqExprCast-279" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-280" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gYearMonth: the hour component cannot be +15.</description>
      <query name="K-SeqExprCast-280" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-281" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gYearMonth: the minute component cannot be +60.</description>
      <query name="K-SeqExprCast-281" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-282" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gYearMonth: the minute component cannot be -60.</description>
      <query name="K-SeqExprCast-282" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-283" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gYearMonth to xs:string, with timezone '-00:00' is properly handled.</description>
      <query name="K-SeqExprCast-283" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-283.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-284" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gYearMonth to xs:string, with timezone '+00:00' is properly handled.</description>
      <reflects-resolution>http://www.w3.org/Bugs/Public/show_bug.cgi?id=4471</reflects-resolution>
      <query name="K-SeqExprCast-284" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-284.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-285" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gYearMonth to xs:string, with timezone 'Z' is properly handled.</description>
      <query name="K-SeqExprCast-285" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-285.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-286" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'-01-12' is an invalid lexical representation for xs:gMonthDay.</description>
      <query name="K-SeqExprCast-286" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-287" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+--01-12' is an invalid lexical representation for xs:gMonthDay.</description>
      <query name="K-SeqExprCast-287" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-288" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'01-12-' is an invalid lexical representation for xs:gMonthDay.</description>
      <query name="K-SeqExprCast-288" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-289" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--01--12' is an invalid lexical representation for xs:gMonthDay.</description>
      <query name="K-SeqExprCast-289" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-290" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--01-00' is an invalid lexical representation for xs:gMonthDay.</description>
      <query name="K-SeqExprCast-290" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-291" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--00-01' is an invalid lexical representation for xs:gMonthDay.</description>
      <query name="K-SeqExprCast-291" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-292" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--13-01' is an invalid lexical representation for xs:gMonthDay.</description>
      <query name="K-SeqExprCast-292" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-293" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--111-01' is an invalid lexical representation for xs:gMonthDay.</description>
      <query name="K-SeqExprCast-293" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-294" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--1967-01' is an invalid lexical representation for xs:gMonthDay.</description>
      <query name="K-SeqExprCast-294" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-295" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--02-31' is an invalid lexical representation for xs:gMonthDay.</description>
      <query name="K-SeqExprCast-295" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-296" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gMonthDay: the minute field must always be present.</description>
      <query name="K-SeqExprCast-296" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-297" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gMonthDay value '--02-30' represents a non-existent date.</description>
      <query name="K-SeqExprCast-297" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-298" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gMonthDay value '--04-31' represents a non-existent date.</description>
      <query name="K-SeqExprCast-298" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-299" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gMonthDay value '--11-31' represents a non-existent date.</description>
      <query name="K-SeqExprCast-299" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-300" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gMonthDay: the hour component cannot be -15.</description>
      <query name="K-SeqExprCast-300" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-301" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gMonthDay: the hour component cannot be +15.</description>
      <query name="K-SeqExprCast-301" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-302" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gMonthDay: the minute component cannot be +60.</description>
      <query name="K-SeqExprCast-302" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-303" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:gMonthDay: the minute component cannot be -60.</description>
      <query name="K-SeqExprCast-303" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-304" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gMonthDay to xs:string, with timezone '-00:00' is properly handled.</description>
      <query name="K-SeqExprCast-304" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-304.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-305" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gMonthDay to xs:string, with timezone '+00:00' is properly handled.</description>
      <reflects-resolution>http://www.w3.org/Bugs/Public/show_bug.cgi?id=4471</reflects-resolution>
      <query name="K-SeqExprCast-305" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-305.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-306" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:gMonthDay to xs:string, with timezone 'Z' is properly handled.</description>
      <query name="K-SeqExprCast-306" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-306.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-307" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple xs:gMonthDay test involving --02-29.</description>
      <query name="K-SeqExprCast-307" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-307.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-308" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+2004-08-01T12:44:05' is an invalid lexical representation, a preceding '+' sign is not allowed for xs:dateTime.</description>
      <query name="K-SeqExprCast-308" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-309" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'02004-08-01T12:44:05' is an invalid lexical representation for xs:dateTime; if the year part has more than four digits, leading zeros are prohibited.</description>
      <query name="K-SeqExprCast-309" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-310" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'00004-08-01T12:44:05' is an invalid lexical representation for xs:dateTime; if the year part has more than four digits, leading zeros are prohibited.</description>
      <query name="K-SeqExprCast-310" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-311" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2004-32-01T12:44:05' is an invalid lexical representation for xs:dateTime; the month part cannot be larger than 32.</description>
      <query name="K-SeqExprCast-311" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-312" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2002-02-30T12:44:05' is a non-existent xs:dateTime date.</description>
      <query name="K-SeqExprCast-312" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-313" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2002-002-15T12:44:05' is an invalid lexical representation for xs:dateTime.</description>
      <query name="K-SeqExprCast-313" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-314" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2002-02-150T12:44:05' is an invalid lexical representation for xs:dateTime.</description>
      <query name="K-SeqExprCast-314" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-315" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2002-02-15T24:00:00.001' is an invalid lexical representation for xs:dateTime; if hour is 24, seconds part must be 00.</description>
      <query name="K-SeqExprCast-315" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-316" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2002-02-15T24:01:00' is an invalid lexical representation for xs:dateTime; if hour is 24, minutes part must be 00.</description>
      <query name="K-SeqExprCast-316" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-317" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2002-02-15T25:00:00' is an invalid lexical representation for xs:dateTime; hour part can never be larger than 24.</description>
      <query name="K-SeqExprCast-317" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-318" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2002-02-15T21:60:00' is an invalid lexical representation for xs:dateTime; minute part can never be larger than 59.</description>
      <query name="K-SeqExprCast-318" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-319" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2002-02-15T21:01:60' is an invalid lexical representation for xs:dateTime; seconds part can never be larger than 59.</description>
      <query name="K-SeqExprCast-319" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-320" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--2002-02-15T21:01:23' is an invalid lexical representation for xs:dateTime.</description>
      <query name="K-SeqExprCast-320" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-321" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:dateTime: the hour component cannot be -15.</description>
      <query name="K-SeqExprCast-321" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-322" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:dateTime: the hour component cannot be +15.</description>
      <query name="K-SeqExprCast-322" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-323" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:dateTime: the minute component cannot be +60.</description>
      <query name="K-SeqExprCast-323" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-324" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:dateTime: the minute component cannot be -60.</description>
      <query name="K-SeqExprCast-324" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-325" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:dateTime: the minute field must always be present.</description>
      <query name="K-SeqExprCast-325" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-326" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC timezone to xs:gYear.</description>
      <query name="K-SeqExprCast-326" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-326.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-327" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC offset to xs:gYear.</description>
      <query name="K-SeqExprCast-327" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-327.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-328" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC timezone to xs:gYearMonth.</description>
      <query name="K-SeqExprCast-328" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-328.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-329" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC offset to xs:gYearMonth.</description>
      <query name="K-SeqExprCast-329" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-329.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-330" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC timezone to xs:gMonth.</description>
      <query name="K-SeqExprCast-330" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-330.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-331" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC offset to xs:gMonth.</description>
      <query name="K-SeqExprCast-331" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-331.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-332" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC timezone to xs:gMonthDay.</description>
      <query name="K-SeqExprCast-332" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-332.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-333" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC offset to xs:gMonthDay.</description>
      <query name="K-SeqExprCast-333" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-333.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-334" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC timezone to xs:gDay.</description>
      <query name="K-SeqExprCast-334" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-334.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-335" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC offset to xs:gDay.</description>
      <query name="K-SeqExprCast-335" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-335.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-336" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC timezone to xs:date.</description>
      <query name="K-SeqExprCast-336" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-336.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-337" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC offset to xs:date.</description>
      <query name="K-SeqExprCast-337" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-337.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-338" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC timezone to xs:time.</description>
      <query name="K-SeqExprCast-338" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-338.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-339" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:dateTime with UTC offset to xs:time.</description>
      <query name="K-SeqExprCast-339" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-339.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-340" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:dateTime to xs:string, with timezone '-00:00' is properly handled.</description>
      <query name="K-SeqExprCast-340" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-340.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-341" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:dateTime to xs:string, with timezone '+00:00' is properly handled.</description>
      <reflects-resolution>http://www.w3.org/Bugs/Public/show_bug.cgi?id=4471</reflects-resolution>
      <query name="K-SeqExprCast-341" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-341.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-342" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:dateTime to xs:string that an empty milli seconds part is not serialized.</description>
      <query name="K-SeqExprCast-342" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-342.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-343" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:dateTime to xs:string that milli seconds have no trailing zeros.</description>
      <query name="K-SeqExprCast-343" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-343.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-344" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:dateTime to xs:string that milli seconds are properly padded with zeros.</description>
      <query name="K-SeqExprCast-344" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-344.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-345" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:dateTime to xs:string that milli seconds are properly padded with zeros.</description>
      <query name="K-SeqExprCast-345" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-345.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-346" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:dateTime to xs:string that a milli seconds part of '435' is handled properly.</description>
      <query name="K-SeqExprCast-346" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-346.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-347" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:dateTime to xs:string that a milli seconds part of '11' is handled properly.</description>
      <query name="K-SeqExprCast-347" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-347.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-348" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:dateTime to xs:string that a milli seconds part of '110' is handled properly.</description>
      <query name="K-SeqExprCast-348" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-348.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-349" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple xs:dateTime involving time with no milli seconds.</description>
      <query name="K-SeqExprCast-349" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-349.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-350" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The canonical form of an xs:dateTime containing 24:00:00 is the following day at 00:00:00.</description>
      <query name="K-SeqExprCast-350" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-350.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-351" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'24:00:00.001' is an invalid lexical representation for xs:time; if hour is 24, seconds part must be 00.</description>
      <query name="K-SeqExprCast-351" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-352" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'24:01:00' is an invalid lexical representation for xs:time; if hour is 24, minutes part must be 00.</description>
      <query name="K-SeqExprCast-352" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-353" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'25:00:00' is an invalid lexical representation for xs:time; hour part can never be larger than 24.</description>
      <query name="K-SeqExprCast-353" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-354" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'21:60:00' is an invalid lexical representation for xs:time; minute part can never be larger than 59.</description>
      <query name="K-SeqExprCast-354" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-355" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'21:01:60' is an invalid lexical representation for xs:time; seconds part can never be larger than 59.</description>
      <query name="K-SeqExprCast-355" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-356" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+21:01:50' is an invalid lexical representation for xs:time.</description>
      <query name="K-SeqExprCast-356" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-357" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'-21:01:50' is an invalid lexical representation for xs:time.</description>
      <query name="K-SeqExprCast-357" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-358" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A valid xs:dateTime is an invalid xs:time.</description>
      <query name="K-SeqExprCast-358" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-359" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:time: the hour component cannot be -15.</description>
      <query name="K-SeqExprCast-359" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-360" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:time: the hour component cannot be +15.</description>
      <query name="K-SeqExprCast-360" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-361" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:time: the minute component cannot be +60.</description>
      <query name="K-SeqExprCast-361" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-362" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:time: the minute component cannot be -60.</description>
      <query name="K-SeqExprCast-362" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-363" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:time: the minute field must always be present.</description>
      <query name="K-SeqExprCast-363" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-364" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple xs:time involving time with no milli seconds.</description>
      <query name="K-SeqExprCast-364" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-364.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-365" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:time to xs:string, with timezone '-00:00' is properly handled.</description>
      <query name="K-SeqExprCast-365" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-365.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-366" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:time to xs:string, with timezone '+00:00' is properly handled.</description>
      <reflects-resolution>http://www.w3.org/Bugs/Public/show_bug.cgi?id=4471</reflects-resolution>
      <query name="K-SeqExprCast-366" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-366.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-367" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:time to xs:string that an empty milli seconds part is not serialized.</description>
      <query name="K-SeqExprCast-367" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-367.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-368" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:time to xs:string that milli seconds have no trailing zeros.</description>
      <query name="K-SeqExprCast-368" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-368.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-369" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:time to xs:string that milli seconds are properly padded with zeros.</description>
      <query name="K-SeqExprCast-369" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-369.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-370" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:time to xs:string that milli seconds are properly padded with zeros.</description>
      <query name="K-SeqExprCast-370" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-370.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-371" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:time to xs:string that a milli seconds part of '435' is handled properly.</description>
      <query name="K-SeqExprCast-371" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-371.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-372" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:time to xs:string that a milli seconds part of '11' is handled properly.</description>
      <query name="K-SeqExprCast-372" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-372.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-373" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:time to xs:string that a milli seconds part of '110' is handled properly.</description>
      <query name="K-SeqExprCast-373" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-373.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-374" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The canonical form of an xs:time containing 24:00:00 is 00:00:00.</description>
      <query name="K-SeqExprCast-374" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-374.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-375" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+2004-08-01' is an invalid lexical representation, a preceding '+' sign is not allowed for xs:date.</description>
      <query name="K-SeqExprCast-375" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-376" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'02004-08-01' is an invalid lexical representation for xs:date; if the year part has more than four digits, leading zeros are prohibited.</description>
      <query name="K-SeqExprCast-376" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-377" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'00004-08-01' is an invalid lexical representation for xs:date; if the year part has more than four digits, leading zeros are prohibited.</description>
      <query name="K-SeqExprCast-377" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-378" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2004-32-01' is an invalid lexical representation for xs:date; the month part cannot be larger than 32.</description>
      <query name="K-SeqExprCast-378" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-379" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2002-02-30' is a non-existent xs:date date.</description>
      <query name="K-SeqExprCast-379" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-380" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2002-002-15' is an invalid lexical representation for xs:date.</description>
      <query name="K-SeqExprCast-380" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-381" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'2002-02-150' is an invalid lexical representation for xs:date.</description>
      <query name="K-SeqExprCast-381" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-382" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'--2002-02-15' is an invalid lexical representation for xs:date.</description>
      <query name="K-SeqExprCast-382" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-383" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A valid xs:dateTime is an invalid xs:date.</description>
      <query name="K-SeqExprCast-383" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-384" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:date: the hour component cannot be -15.</description>
      <query name="K-SeqExprCast-384" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-385" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:date: the hour component cannot be +15.</description>
      <query name="K-SeqExprCast-385" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-386" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:date: the minute component cannot be +60.</description>
      <query name="K-SeqExprCast-386" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-387" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing timezone field in xs:date: the minute component cannot be -60.</description>
      <query name="K-SeqExprCast-387" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-388" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Testing datezone field in xs:date: the minute field must always be present.</description>
      <query name="K-SeqExprCast-388" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-389" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:date with UTC timezone to xs:gYear.</description>
      <query name="K-SeqExprCast-389" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-389.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-390" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:date with UTC offset to xs:gYear.</description>
      <query name="K-SeqExprCast-390" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-390.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-391" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:date with UTC timezone to xs:gYearMonth.</description>
      <query name="K-SeqExprCast-391" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-391.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-392" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:date with UTC offset to xs:gYearMonth.</description>
      <query name="K-SeqExprCast-392" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-392.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-393" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:date with UTC timezone to xs:gMonth.</description>
      <query name="K-SeqExprCast-393" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-393.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-394" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:date with UTC offset to xs:gMonth.</description>
      <query name="K-SeqExprCast-394" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-394.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-395" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:date with UTC timezone to xs:gMonthDay.</description>
      <query name="K-SeqExprCast-395" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-395.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-396" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:date with UTC offset to xs:gMonthDay.</description>
      <query name="K-SeqExprCast-396" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-396.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-397" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:date with UTC timezone to xs:gDay.</description>
      <query name="K-SeqExprCast-397" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-397.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-398" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:date with UTC offset to xs:gDay.</description>
      <query name="K-SeqExprCast-398" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-398.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-399" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:date with UTC timezone to xs:time.</description>
      <query name="K-SeqExprCast-399" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-399.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-400" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Simple test of casting a xs:date with UTC offset to xs:dateTime.</description>
      <query name="K-SeqExprCast-400" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-400.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-401" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:date to xs:string, with timezone '-00:00' is properly handled.</description>
      <query name="K-SeqExprCast-401" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-401.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-402" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure casting xs:date to xs:string, with timezone '+00:00' is properly handled.</description>
      <reflects-resolution>http://www.w3.org/Bugs/Public/show_bug.cgi?id=4471</reflects-resolution>
      <query name="K-SeqExprCast-402" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-402.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-403" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:date to xs:string that an empty milli seconds part is not serialized.</description>
      <query name="K-SeqExprCast-403" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-403.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-404" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:date to xs:string that milli seconds have no trailing zeros.</description>
      <query name="K-SeqExprCast-404" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-404.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-405" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:date to xs:string that milli seconds are properly padded with zeros.</description>
      <query name="K-SeqExprCast-405" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-405.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-406" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:date to xs:string that milli seconds are properly padded with zeros.</description>
      <query name="K-SeqExprCast-406" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-406.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-407" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:date to xs:string that a milli seconds part of '435' is handled properly.</description>
      <query name="K-SeqExprCast-407" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-407.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-408" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:date to xs:string that a milli seconds part of '11' is handled properly.</description>
      <query name="K-SeqExprCast-408" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-408.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-409" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure when casting xs:date to xs:string that a milli seconds part of '110' is handled properly.</description>
      <query name="K-SeqExprCast-409" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-409.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-411" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:untypedAtomic constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-411" 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-SeqExprCast-412" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:untypedAtomic constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-412" 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-SeqExprCast-413" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:untypedAtomic constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-413" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-413.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-414" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:untypedAtomic.</description>
      <query name="K-SeqExprCast-414" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-414.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-415" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>An empty string is a valid lexical representation of xs:untypedAtomic.</description>
      <query name="K-SeqExprCast-415" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-415.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-416" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "an arbitrary string(untypedAtomic source)" .</description>
      <query name="K-SeqExprCast-416" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-416.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-417" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Applying fn:boolean() to a value of type xs:untypedAtomic that has the lexical value ' "an arbitrary string(untypedAtomic source)" ' should result in the boolean value true.</description>
      <query name="K-SeqExprCast-417" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-417.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-418" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:untypedAtomic to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-418" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-418.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-419" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:untypedAtomic as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-419" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-419.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-420" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:untypedAtomic to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-420" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-420.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-421" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:untypedAtomic as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-421" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-421.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-422" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:untypedAtomic to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-422" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-423" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:untypedAtomic as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-423" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-423.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-424" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:untypedAtomic as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-424" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-425" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:string constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-425" 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-SeqExprCast-426" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:string constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-426" 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-SeqExprCast-427" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:string constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-427" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-427.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-428" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:string.</description>
      <query name="K-SeqExprCast-428" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-428.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-429" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>An empty string is a valid lexical representation of xs:string.</description>
      <query name="K-SeqExprCast-429" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-429.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-430" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "an arbitrary string" .</description>
      <query name="K-SeqExprCast-430" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-430.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-431" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Applying fn:boolean() to a value of type xs:string that has the lexical value ' "an arbitrary string" ' should result in the boolean value true.</description>
      <query name="K-SeqExprCast-431" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-431.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-432" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:string to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-432" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-432.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-433" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:string as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-433" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-433.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-434" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:string to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-434" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-434.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-435" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:string as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-435" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-435.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-436" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:string as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-436" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-437" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:float constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-437" 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-SeqExprCast-438" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:float constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-438" 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-SeqExprCast-439" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:float constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-439" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-439.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-440" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:float.</description>
      <query name="K-SeqExprCast-440" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-440.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-441" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:float.</description>
      <query name="K-SeqExprCast-441" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-442" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "3.4e5" .</description>
      <query name="K-SeqExprCast-442" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-442.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-443" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Applying fn:boolean() to a value of type xs:float that has the lexical value ' "3.4e5" ' should result in the boolean value true.</description>
      <query name="K-SeqExprCast-443" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-443.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-444" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:float to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-444" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-444.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-445" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-445" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-445.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-446" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:float to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-446" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-446.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-447" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-447" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-447.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-448" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:float to xs:float is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-448" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-448.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-449" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:float as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-449" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-449.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-450" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:float to xs:double is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-450" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-450.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-451" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:double as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-451" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-451.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-452" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-452" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-453" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-453" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-453.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-454" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-454" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-455" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-455" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-455.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-456" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-456" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-457" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-457" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-457.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-458" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-458" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-459" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-459" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-459.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-460" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-460" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-461" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-461" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-461.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-462" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-462" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-463" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-463" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-463.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-464" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-464" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-465" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-465" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-465.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-466" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-466" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-467" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-467" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-467.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-468" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-468" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-469" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-469" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-469.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-470" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-470" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-471" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-471" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-471.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-472" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-472" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-473" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-473" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-473.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-474" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:float to xs:boolean is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-474" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-474.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-475" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:boolean as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-475" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-475.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-476" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-476" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-477" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-477" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-477.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-478" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-478" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-479" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-479" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-479.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-480" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-480" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-481" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-481" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-481.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-482" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:float to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-482" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-483" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:float as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-483" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-483.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-484" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:float as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-484" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-485" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:double constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-485" 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-SeqExprCast-486" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:double constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-486" 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-SeqExprCast-487" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:double constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-487" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-487.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-488" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:double.</description>
      <query name="K-SeqExprCast-488" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-488.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-489" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:double.</description>
      <query name="K-SeqExprCast-489" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-490" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "3.3e3" .</description>
      <query name="K-SeqExprCast-490" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-490.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-491" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Applying fn:boolean() to a value of type xs:double that has the lexical value ' "3.3e3" ' should result in the boolean value true.</description>
      <query name="K-SeqExprCast-491" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-491.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-492" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:double to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-492" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-492.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-493" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-493" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-493.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-494" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:double to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-494" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-494.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-495" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-495" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-495.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-496" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:double to xs:float is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-496" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-496.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-497" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:float as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-497" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-497.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-498" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:double to xs:double is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-498" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-498.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-499" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:double as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-499" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-499.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-500" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-500" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-501" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-501" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-501.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-502" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-502" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-503" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-503" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-503.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-504" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-504" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-505" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-505" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-505.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-506" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-506" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-507" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-507" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-507.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-508" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-508" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-509" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-509" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-509.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-510" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-510" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-511" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-511" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-511.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-512" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-512" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-513" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-513" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-513.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-514" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-514" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-515" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-515" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-515.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-516" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-516" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-517" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-517" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-517.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-518" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-518" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-519" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-519" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-519.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-520" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-520" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-521" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-521" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-521.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-522" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:double to xs:boolean is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-522" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-522.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-523" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:boolean as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-523" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-523.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-524" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-524" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-525" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-525" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-525.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-526" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-526" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-527" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-527" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-527.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-528" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-528" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-529" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-529" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-529.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-530" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:double to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-530" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-531" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:double as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-531" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-531.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-532" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:double as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-532" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-533" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:decimal constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-533" 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-SeqExprCast-534" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:decimal constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-534" 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-SeqExprCast-535" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:decimal constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-535" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-535.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-536" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:decimal.</description>
      <query name="K-SeqExprCast-536" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-536.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-537" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:decimal.</description>
      <query name="K-SeqExprCast-537" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-538" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "10.01" .</description>
      <query name="K-SeqExprCast-538" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-538.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-539" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Applying fn:boolean() to a value of type xs:decimal that has the lexical value ' "10.01" ' should result in the boolean value true.</description>
      <query name="K-SeqExprCast-539" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-539.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-540" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:decimal to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-540" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-540.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-541" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-541" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-541.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-542" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:decimal to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-542" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-542.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-543" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-543" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-543.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-544" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:decimal to xs:float is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-544" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-544.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-545" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:float as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-545" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-545.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-546" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:decimal to xs:double is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-546" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-546.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-547" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:double as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-547" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-547.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-548" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:decimal to xs:decimal is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-548" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-548.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-549" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:decimal as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-549" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-549.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-550" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:decimal to xs:integer is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-550" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-550.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-551" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:integer as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-551" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-551.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-552" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-552" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-553" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-553" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-553.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-554" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-554" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-555" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-555" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-555.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-556" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-556" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-557" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-557" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-557.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-558" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-558" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-559" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-559" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-559.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-560" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-560" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-561" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-561" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-561.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-562" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-562" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-563" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-563" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-563.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-564" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-564" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-565" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-565" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-565.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-566" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-566" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-567" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-567" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-567.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-568" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-568" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-569" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-569" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-569.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-570" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-570" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-571" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-571" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-571.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-572" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-572" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-573" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-573" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-573.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-574" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:decimal to xs:boolean is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-574" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-574.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-575" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:boolean as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-575" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-575.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-576" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-576" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-577" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-577" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-577.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-578" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-578" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-579" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-579" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-579.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-580" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-580" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-581" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-581" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-581.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-582" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:decimal to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-582" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-583" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:decimal as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-583" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-583.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-584" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:decimal as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-584" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-585" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:integer constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-585" 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-SeqExprCast-586" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:integer constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-586" 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-SeqExprCast-587" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:integer constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-587" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-587.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-588" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:integer.</description>
      <query name="K-SeqExprCast-588" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-588.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-589" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:integer.</description>
      <query name="K-SeqExprCast-589" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-590" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "6789" .</description>
      <query name="K-SeqExprCast-590" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-590.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-591" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Applying fn:boolean() to a value of type xs:integer that has the lexical value ' "6789" ' should result in the boolean value true.</description>
      <query name="K-SeqExprCast-591" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-591.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-592" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:integer to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-592" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-592.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-593" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-593" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-593.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-594" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:integer to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-594" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-594.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-595" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-595" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-595.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-596" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:integer to xs:float is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-596" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-596.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-597" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:float as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-597" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-597.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-598" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:integer to xs:double is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-598" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-598.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-599" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:double as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-599" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-599.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-600" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:integer to xs:decimal is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-600" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-600.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-601" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:decimal as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-601" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-601.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-602" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:integer to xs:integer is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-602" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-602.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-603" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:integer as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-603" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-603.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-604" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-604" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-605" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-605" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-605.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-606" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-606" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-607" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-607" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-607.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-608" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-608" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-609" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-609" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-609.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-610" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-610" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-611" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-611" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-611.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-612" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-612" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-613" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-613" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-613.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-614" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-614" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-615" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-615" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-615.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-616" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-616" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-617" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-617" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-617.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-618" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-618" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-619" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-619" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-619.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-620" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-620" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-621" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-621" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-621.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-622" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-622" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-623" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-623" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-623.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-624" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-624" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-625" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-625" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-625.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-626" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:integer to xs:boolean is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-626" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-626.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-627" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:boolean as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-627" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-627.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-628" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-628" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-629" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-629" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-629.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-630" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-630" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-631" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-631" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-631.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-632" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-632" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-633" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-633" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-633.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-634" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:integer to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-634" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-635" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:integer as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-635" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-635.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-636" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:integer as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-636" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-637" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:duration constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-637" 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-SeqExprCast-638" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:duration constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-638" 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-SeqExprCast-639" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:duration constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-639" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-639.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-640" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:duration.</description>
      <query name="K-SeqExprCast-640" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-640.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-641" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:duration.</description>
      <query name="K-SeqExprCast-641" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-642" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "P1Y2M3DT10H30M" .</description>
      <query name="K-SeqExprCast-642" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-642.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-643" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:duration, with the boolean() function.</description>
      <query name="K-SeqExprCast-643" 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-SeqExprCast-644" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:duration to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-644" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-644.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-645" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-645" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-645.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-646" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:duration to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-646" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-646.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-647" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-647" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-647.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-648" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-648" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-649" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-649" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-649.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-650" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-650" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-651" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-651" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-651.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-652" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-652" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-653" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-653" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-653.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-654" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-654" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-655" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-655" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-655.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-656" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:duration to xs:duration is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-656" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-656.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-657" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:duration as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-657" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-657.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-658" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:duration to xs:yearMonthDuration is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-658" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-658.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-659" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:yearMonthDuration as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-659" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-659.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-660" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:duration to xs:dayTimeDuration is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-660" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-660.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-661" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:dayTimeDuration as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-661" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-661.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-662" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-662" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-663" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-663" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-663.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-664" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-664" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-665" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-665" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-665.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-666" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-666" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-667" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-667" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-667.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-668" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-668" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-669" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-669" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-669.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-670" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-670" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-671" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-671" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-671.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-672" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-672" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-673" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-673" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-673.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-674" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-674" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-675" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-675" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-675.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-676" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-676" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-677" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-677" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-677.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-678" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-678" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-679" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-679" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-679.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-680" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-680" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-681" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-681" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-681.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-682" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-682" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-683" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-683" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-683.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-684" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-684" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-685" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-685" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-685.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-686" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:duration to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-686" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-687" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:duration as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-687" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-687.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-688" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:duration as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-688" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-689" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:yearMonthDuration constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-689" 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-SeqExprCast-690" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:yearMonthDuration constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-690" 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-SeqExprCast-691" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:yearMonthDuration constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-691" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-691.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-692" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:yearMonthDuration.</description>
      <query name="K-SeqExprCast-692" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-692.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-693" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:yearMonthDuration.</description>
      <query name="K-SeqExprCast-693" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-694" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "P1Y12M" .</description>
      <query name="K-SeqExprCast-694" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-694.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-695" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:yearMonthDuration, with the boolean() function.</description>
      <query name="K-SeqExprCast-695" 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-SeqExprCast-696" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:yearMonthDuration to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-696" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-696.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-697" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-697" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-697.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-698" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:yearMonthDuration to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-698" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-698.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-699" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-699" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-699.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-700" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-700" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-701" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-701" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-701.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-702" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-702" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-703" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-703" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-703.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-704" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-704" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-705" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-705" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-705.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-706" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-706" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-707" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-707" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-707.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-708" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:yearMonthDuration to xs:duration is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-708" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-708.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-709" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:duration as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-709" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-709.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-710" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:yearMonthDuration to xs:yearMonthDuration is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-710" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-710.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-711" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:yearMonthDuration as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-711" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-711.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-712" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:yearMonthDuration to xs:dayTimeDuration is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-712" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-712.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-713" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:dayTimeDuration as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-713" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-713.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-714" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-714" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-715" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-715" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-715.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-716" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-716" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-717" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-717" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-717.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-718" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-718" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-719" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-719" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-719.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-720" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-720" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-721" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-721" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-721.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-722" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-722" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-723" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-723" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-723.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-724" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-724" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-725" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-725" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-725.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-726" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-726" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-727" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-727" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-727.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-728" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-728" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-729" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-729" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-729.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-730" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-730" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-731" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-731" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-731.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-732" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-732" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-733" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-733" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-733.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-734" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-734" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-735" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-735" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-735.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-736" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-736" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-737" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-737" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-737.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-738" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:yearMonthDuration to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-738" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-739" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:yearMonthDuration as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-739" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-739.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-740" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:yearMonthDuration as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-740" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-741" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:dayTimeDuration constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-741" 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-SeqExprCast-742" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:dayTimeDuration constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-742" 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-SeqExprCast-743" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:dayTimeDuration constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-743" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-743.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-744" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:dayTimeDuration.</description>
      <query name="K-SeqExprCast-744" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-744.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-745" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:dayTimeDuration.</description>
      <query name="K-SeqExprCast-745" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-746" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "P3DT2H" .</description>
      <query name="K-SeqExprCast-746" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-746.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-747" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:dayTimeDuration, with the boolean() function.</description>
      <query name="K-SeqExprCast-747" 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-SeqExprCast-748" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dayTimeDuration to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-748" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-748.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-749" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-749" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-749.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-750" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dayTimeDuration to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-750" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-750.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-751" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-751" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-751.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-752" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-752" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-753" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-753" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-753.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-754" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-754" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-755" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-755" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-755.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-756" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-756" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-757" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-757" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-757.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-758" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-758" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-759" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-759" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-759.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-760" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dayTimeDuration to xs:duration is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-760" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-760.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-761" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:duration as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-761" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-761.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-762" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dayTimeDuration to xs:yearMonthDuration is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-762" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-762.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-763" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:yearMonthDuration as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-763" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-763.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-764" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dayTimeDuration to xs:dayTimeDuration is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-764" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-764.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-765" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:dayTimeDuration as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-765" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-765.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-766" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-766" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-767" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-767" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-767.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-768" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-768" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-769" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-769" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-769.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-770" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-770" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-771" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-771" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-771.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-772" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-772" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-773" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-773" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-773.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-774" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-774" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-775" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-775" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-775.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-776" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-776" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-777" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-777" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-777.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-778" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-778" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-779" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-779" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-779.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-780" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-780" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-781" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-781" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-781.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-782" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-782" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-783" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-783" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-783.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-784" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-784" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-785" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-785" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-785.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-786" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-786" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-787" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-787" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-787.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-788" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-788" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-789" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-789" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-789.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-790" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dayTimeDuration to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-790" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-791" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dayTimeDuration as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-791" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-791.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-792" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:dayTimeDuration as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-792" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-793" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:dateTime constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-793" 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-SeqExprCast-794" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:dateTime constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-794" 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-SeqExprCast-795" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:dateTime constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-795" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-795.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-796" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:dateTime.</description>
      <query name="K-SeqExprCast-796" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-796.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-797" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:dateTime.</description>
      <query name="K-SeqExprCast-797" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-798" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "2002-10-10T12:00:00-05:00" .</description>
      <query name="K-SeqExprCast-798" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-798.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-799" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:dateTime, with the boolean() function.</description>
      <query name="K-SeqExprCast-799" 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-SeqExprCast-800" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dateTime to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-800" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-800.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-801" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-801" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-801.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-802" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dateTime to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-802" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-802.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-803" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-803" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-803.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-804" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dateTime to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-804" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-805" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-805" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-805.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-806" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dateTime to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-806" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-807" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-807" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-807.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-808" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dateTime to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-808" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-809" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-809" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-809.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-810" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dateTime to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-810" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-811" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-811" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-811.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-812" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dateTime to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-812" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-813" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-813" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-813.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-814" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dateTime to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-814" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-815" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-815" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-815.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-816" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dateTime to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-816" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-817" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-817" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-817.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-818" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dateTime to xs:dateTime is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-818" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-818.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-819" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:dateTime as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-819" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-819.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-820" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dateTime to xs:time is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-820" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-820.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-821" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:time as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-821" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-821.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-822" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dateTime to xs:date is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-822" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-822.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-823" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:date as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-823" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-823.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-824" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dateTime to xs:gYearMonth is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-824" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-824.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-825" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:gYearMonth as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-825" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-825.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-826" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dateTime to xs:gYear is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-826" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-826.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-827" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:gYear as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-827" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-827.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-828" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dateTime to xs:gMonthDay is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-828" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-828.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-829" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:gMonthDay as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-829" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-829.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-830" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dateTime to xs:gDay is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-830" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-830.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-831" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:gDay as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-831" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-831.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-832" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:dateTime to xs:gMonth is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-832" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-832.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-833" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:gMonth as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-833" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-833.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-834" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dateTime to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-834" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-835" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-835" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-835.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-836" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dateTime to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-836" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-837" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-837" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-837.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-838" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dateTime to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-838" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-839" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-839" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-839.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-840" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dateTime to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-840" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-841" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-841" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-841.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-842" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:dateTime to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-842" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-843" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:dateTime as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-843" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-843.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-844" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:dateTime as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-844" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-845" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:time constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-845" 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-SeqExprCast-846" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:time constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-846" 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-SeqExprCast-847" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:time constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-847" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-847.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-848" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:time.</description>
      <query name="K-SeqExprCast-848" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-848.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-849" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:time.</description>
      <query name="K-SeqExprCast-849" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-850" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "03:20:00-05:00" .</description>
      <query name="K-SeqExprCast-850" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-850.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-851" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:time, with the boolean() function.</description>
      <query name="K-SeqExprCast-851" 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-SeqExprCast-852" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:time to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-852" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-852.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-853" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-853" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-853.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-854" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:time to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-854" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-854.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-855" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-855" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-855.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-856" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-856" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-857" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-857" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-857.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-858" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-858" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-859" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-859" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-859.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-860" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-860" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-861" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-861" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-861.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-862" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-862" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-863" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-863" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-863.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-864" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-864" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-865" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-865" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-865.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-866" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-866" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-867" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-867" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-867.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-868" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-868" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-869" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-869" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-869.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-870" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-870" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-871" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-871" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-871.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-872" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:time to xs:time is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-872" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-872.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-873" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:time as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-873" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-873.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-874" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-874" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-875" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-875" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-875.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-876" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-876" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-877" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-877" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-877.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-878" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-878" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-879" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-879" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-879.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-880" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-880" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-881" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-881" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-881.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-882" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-882" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-883" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-883" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-883.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-884" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-884" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-885" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-885" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-885.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-886" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-886" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-887" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-887" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-887.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-888" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-888" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-889" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-889" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-889.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-890" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-890" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-891" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-891" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-891.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-892" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-892" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-893" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-893" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-893.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-894" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:time to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-894" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-895" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:time as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-895" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-895.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-896" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:time as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-896" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-897" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:date constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-897" 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-SeqExprCast-898" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:date constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-898" 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-SeqExprCast-899" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:date constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-899" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-899.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-900" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:date.</description>
      <query name="K-SeqExprCast-900" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-900.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-901" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:date.</description>
      <query name="K-SeqExprCast-901" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-902" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "2004-10-13" .</description>
      <query name="K-SeqExprCast-902" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-902.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-903" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:date, with the boolean() function.</description>
      <query name="K-SeqExprCast-903" 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-SeqExprCast-904" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:date to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-904" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-904.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-905" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-905" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-905.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-906" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:date to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-906" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-906.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-907" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-907" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-907.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-908" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-908" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-909" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-909" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-909.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-910" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-910" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-911" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-911" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-911.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-912" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-912" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-913" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-913" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-913.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-914" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-914" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-915" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-915" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-915.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-916" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-916" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-917" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-917" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-917.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-918" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-918" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-919" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-919" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-919.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-920" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-920" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-921" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-921" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-921.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-922" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:date to xs:dateTime is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-922" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-922.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-923" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:dateTime as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-923" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-923.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-924" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-924" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-925" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-925" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-925.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-926" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:date to xs:date is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-926" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-926.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-927" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:date as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-927" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-927.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-928" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:date to xs:gYearMonth is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-928" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-928.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-929" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:gYearMonth as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-929" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-929.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-930" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:date to xs:gYear is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-930" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-930.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-931" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:gYear as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-931" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-931.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-932" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:date to xs:gMonthDay is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-932" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-932.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-933" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:gMonthDay as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-933" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-933.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-934" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:date to xs:gDay is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-934" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-934.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-935" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:gDay as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-935" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-935.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-936" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:date to xs:gMonth is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-936" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-936.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-937" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:gMonth as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-937" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-937.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-938" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-938" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-939" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-939" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-939.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-940" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-940" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-941" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-941" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-941.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-942" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-942" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-943" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-943" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-943.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-944" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-944" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-945" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-945" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-945.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-946" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:date to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-946" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-947" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:date as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-947" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-947.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-948" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:date as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-948" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-949" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gYearMonth constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-949" 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-SeqExprCast-950" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gYearMonth constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-950" 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-SeqExprCast-951" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:gYearMonth constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-951" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-951.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-952" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:gYearMonth.</description>
      <query name="K-SeqExprCast-952" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-952.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-953" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:gYearMonth.</description>
      <query name="K-SeqExprCast-953" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-954" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "1999-11" .</description>
      <query name="K-SeqExprCast-954" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-954.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-955" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:gYearMonth, with the boolean() function.</description>
      <query name="K-SeqExprCast-955" 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-SeqExprCast-956" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gYearMonth to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-956" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-956.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-957" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-957" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-957.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-958" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gYearMonth to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-958" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-958.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-959" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-959" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-959.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-960" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-960" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-961" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-961" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-961.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-962" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-962" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-963" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-963" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-963.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-964" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-964" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-965" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-965" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-965.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-966" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-966" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-967" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-967" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-967.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-968" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-968" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-969" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-969" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-969.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-970" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-970" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-971" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-971" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-971.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-972" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-972" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-973" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-973" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-973.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-974" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-974" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-975" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-975" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-975.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-976" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-976" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-977" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-977" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-977.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-978" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-978" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-979" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-979" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-979.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-980" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gYearMonth to xs:gYearMonth is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-980" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-980.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-981" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:gYearMonth as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-981" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-981.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-982" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-982" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-983" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-983" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-983.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-984" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-984" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-985" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-985" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-985.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-986" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-986" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-987" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-987" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-987.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-988" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-988" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-989" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-989" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-989.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-990" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-990" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-991" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-991" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-991.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-992" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-992" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-993" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-993" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-993.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-994" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-994" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-995" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-995" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-995.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-996" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-996" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-997" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-997" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-997.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-998" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYearMonth to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-998" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-999" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYearMonth as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-999" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-999.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1000" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:gYearMonth as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-1000" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1001" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gYear constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-1001" 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-SeqExprCast-1002" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gYear constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-1002" 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-SeqExprCast-1003" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:gYear constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-1003" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1003.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1004" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:gYear.</description>
      <query name="K-SeqExprCast-1004" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1004.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1005" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:gYear.</description>
      <query name="K-SeqExprCast-1005" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1006" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "1999" .</description>
      <query name="K-SeqExprCast-1006" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1006.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1007" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:gYear, with the boolean() function.</description>
      <query name="K-SeqExprCast-1007" 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-SeqExprCast-1008" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gYear to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1008" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1008.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1009" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1009" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1009.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1010" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gYear to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1010" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1010.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1011" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1011" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1011.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1012" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-1012" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1013" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1013" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1013.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1014" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-1014" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1015" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1015" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1015.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1016" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-1016" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1017" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1017" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1017.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1018" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-1018" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1019" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1019" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1019.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1020" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-1020" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1021" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1021" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1021.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1022" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1022" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1023" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1023" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1023.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1024" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1024" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1025" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1025" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1025.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1026" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-1026" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1027" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1027" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1027.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1028" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-1028" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1029" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1029" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1029.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1030" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-1030" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1031" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1031" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1031.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1032" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1032" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1033" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1033" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1033.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1034" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gYear to xs:gYear is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1034" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1034.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1035" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:gYear as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1035" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1035.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1036" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-1036" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1037" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1037" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1037.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1038" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-1038" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1039" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1039" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1039.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1040" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1040" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1041" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1041" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1041.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1042" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-1042" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1043" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1043" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1043.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1044" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-1044" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1045" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1045" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1045.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1046" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-1046" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1047" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1047" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1047.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1048" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-1048" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1049" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1049" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1049.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1050" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gYear to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-1050" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1051" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gYear as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1051" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1051.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1052" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:gYear as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-1052" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1053" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gMonthDay constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-1053" 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-SeqExprCast-1054" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gMonthDay constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-1054" 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-SeqExprCast-1055" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:gMonthDay constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-1055" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1055.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1056" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:gMonthDay.</description>
      <query name="K-SeqExprCast-1056" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1056.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1057" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:gMonthDay.</description>
      <query name="K-SeqExprCast-1057" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1058" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "--11-13" .</description>
      <query name="K-SeqExprCast-1058" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1058.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1059" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:gMonthDay, with the boolean() function.</description>
      <query name="K-SeqExprCast-1059" 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-SeqExprCast-1060" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gMonthDay to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1060" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1060.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1061" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1061" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1061.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1062" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gMonthDay to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1062" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1062.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1063" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1063" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1063.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1064" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-1064" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1065" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1065" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1065.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1066" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-1066" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1067" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1067" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1067.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1068" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-1068" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1069" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1069" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1069.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1070" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-1070" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1071" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1071" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1071.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1072" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-1072" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1073" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1073" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1073.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1074" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1074" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1075" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1075" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1075.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1076" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1076" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1077" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1077" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1077.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1078" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-1078" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1079" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1079" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1079.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1080" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-1080" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1081" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1081" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1081.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1082" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-1082" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1083" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1083" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1083.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1084" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1084" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1085" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1085" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1085.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1086" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-1086" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1087" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1087" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1087.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1088" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gMonthDay to xs:gMonthDay is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1088" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1088.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1089" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:gMonthDay as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1089" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1089.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1090" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-1090" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1091" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1091" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1091.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1092" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1092" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1093" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1093" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1093.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1094" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-1094" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1095" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1095" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1095.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1096" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-1096" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1097" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1097" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1097.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1098" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-1098" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1099" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1099" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1099.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1100" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-1100" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1101" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1101" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1101.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1102" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonthDay to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-1102" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1103" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonthDay as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1103" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1103.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1104" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:gMonthDay as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-1104" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1105" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gDay constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-1105" 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-SeqExprCast-1106" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gDay constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-1106" 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-SeqExprCast-1107" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:gDay constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-1107" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1107.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1108" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:gDay.</description>
      <query name="K-SeqExprCast-1108" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1108.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1109" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:gDay.</description>
      <query name="K-SeqExprCast-1109" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1110" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "---03" .</description>
      <query name="K-SeqExprCast-1110" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1110.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1111" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:gDay, with the boolean() function.</description>
      <query name="K-SeqExprCast-1111" 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-SeqExprCast-1112" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gDay to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1112" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1112.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1113" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1113" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1113.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1114" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gDay to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1114" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1114.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1115" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1115" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1115.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1116" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-1116" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1117" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1117" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1117.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1118" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-1118" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1119" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1119" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1119.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1120" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-1120" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1121" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1121" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1121.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1122" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-1122" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1123" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1123" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1123.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1124" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-1124" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1125" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1125" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1125.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1126" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1126" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1127" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1127" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1127.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1128" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1128" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1129" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1129" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1129.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1130" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-1130" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1131" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1131" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1131.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1132" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-1132" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1133" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1133" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1133.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1134" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-1134" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1135" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1135" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1135.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1136" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1136" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1137" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1137" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1137.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1138" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-1138" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1139" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1139" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1139.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1140" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-1140" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1141" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1141" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1141.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1142" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gDay to xs:gDay is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1142" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1142.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1143" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:gDay as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1143" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1143.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1144" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1144" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1145" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1145" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1145.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1146" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-1146" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1147" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1147" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1147.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1148" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-1148" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1149" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1149" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1149.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1150" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-1150" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1151" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1151" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1151.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1152" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-1152" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1153" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1153" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1153.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1154" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gDay to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-1154" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1155" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gDay as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1155" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1155.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1156" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:gDay as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-1156" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1157" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gMonth constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-1157" 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-SeqExprCast-1158" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:gMonth constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-1158" 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-SeqExprCast-1159" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:gMonth constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-1159" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1159.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1160" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:gMonth.</description>
      <query name="K-SeqExprCast-1160" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1160.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1161" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:gMonth.</description>
      <query name="K-SeqExprCast-1161" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1162" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "--11" .</description>
      <query name="K-SeqExprCast-1162" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1162.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1163" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:gMonth, with the boolean() function.</description>
      <query name="K-SeqExprCast-1163" 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-SeqExprCast-1164" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gMonth to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1164" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1164.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1165" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1165" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1165.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1166" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gMonth to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1166" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1166.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1167" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1167" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1167.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1168" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-1168" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1169" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1169" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1169.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1170" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-1170" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1171" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1171" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1171.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1172" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-1172" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1173" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1173" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1173.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1174" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-1174" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1175" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1175" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1175.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1176" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-1176" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1177" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1177" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1177.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1178" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1178" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1179" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1179" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1179.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1180" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1180" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1181" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1181" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1181.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1182" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-1182" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1183" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1183" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1183.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1184" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-1184" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1185" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1185" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1185.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1186" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-1186" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1187" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1187" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1187.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1188" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1188" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1189" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1189" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1189.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1190" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-1190" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1191" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1191" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1191.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1192" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-1192" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1193" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1193" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1193.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1194" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-1194" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1195" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1195" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1195.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1196" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:gMonth to xs:gMonth is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1196" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1196.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1197" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:gMonth as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1197" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1197.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1198" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-1198" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1199" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1199" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1199.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1200" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-1200" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1201" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1201" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1201.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1202" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-1202" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1203" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1203" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1203.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1204" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-1204" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1205" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1205" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1205.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1206" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:gMonth to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-1206" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1207" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:gMonth as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1207" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1207.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1208" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:gMonth as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-1208" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1209" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:boolean constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-1209" 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-SeqExprCast-1210" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:boolean constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-1210" 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-SeqExprCast-1211" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:boolean constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-1211" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1211.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1212" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:boolean.</description>
      <query name="K-SeqExprCast-1212" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1212.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1213" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:boolean.</description>
      <query name="K-SeqExprCast-1213" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1214" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "true" .</description>
      <query name="K-SeqExprCast-1214" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1214.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1215" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Applying fn:boolean() to a value of type xs:boolean that has the lexical value ' "true" ' should result in the boolean value true.</description>
      <query name="K-SeqExprCast-1215" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1215.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1216" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:boolean to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1216" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1216.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1217" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1217" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1217.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1218" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:boolean to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1218" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1218.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1219" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1219" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1219.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1220" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:boolean to xs:float is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1220" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1220.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1221" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:float as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1221" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1221.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1222" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:boolean to xs:double is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1222" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1222.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1223" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:double as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1223" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1223.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1224" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:boolean to xs:decimal is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1224" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1224.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1225" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:decimal as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1225" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1225.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1226" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:boolean to xs:integer is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1226" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1226.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1227" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:integer as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1227" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1227.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1228" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-1228" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1229" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1229" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1229.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1230" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1230" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1231" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1231" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1231.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1232" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1232" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1233" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1233" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1233.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1234" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-1234" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1235" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1235" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1235.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1236" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-1236" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1237" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1237" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1237.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1238" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-1238" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1239" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1239" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1239.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1240" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1240" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1241" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1241" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1241.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1242" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-1242" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1243" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1243" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1243.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1244" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-1244" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1245" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1245" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1245.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1246" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-1246" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1247" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1247" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1247.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1248" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1248" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1249" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1249" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1249.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1250" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:boolean to xs:boolean is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1250" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1250.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1251" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:boolean as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1251" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1251.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1252" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-1252" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1253" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1253" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1253.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1254" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-1254" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1255" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1255" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1255.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1256" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-1256" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1257" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1257" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1257.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1258" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:boolean to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-1258" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1259" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:boolean as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1259" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1259.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1260" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:boolean as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-1260" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1261" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:base64Binary constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-1261" 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-SeqExprCast-1262" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:base64Binary constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-1262" 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-SeqExprCast-1263" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:base64Binary constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-1263" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1263.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1264" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:base64Binary.</description>
      <query name="K-SeqExprCast-1264" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1264.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1265" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>An empty string is a valid lexical representation of xs:base64Binary.</description>
      <query name="K-SeqExprCast-1265" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1265.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1266" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "aaaa" .</description>
      <query name="K-SeqExprCast-1266" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1266.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1267" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:base64Binary, with the boolean() function.</description>
      <query name="K-SeqExprCast-1267" 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-SeqExprCast-1268" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:base64Binary to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1268" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1268.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1269" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1269" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1269.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1270" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:base64Binary to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1270" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1270.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1271" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1271" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1271.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1272" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-1272" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1273" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1273" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1273.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1274" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-1274" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1275" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1275" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1275.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1276" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-1276" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1277" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1277" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1277.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1278" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-1278" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1279" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1279" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1279.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1280" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-1280" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1281" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1281" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1281.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1282" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1282" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1283" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1283" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1283.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1284" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1284" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1285" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1285" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1285.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1286" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-1286" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1287" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1287" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1287.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1288" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-1288" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1289" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1289" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1289.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1290" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-1290" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1291" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1291" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1291.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1292" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1292" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1293" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1293" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1293.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1294" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-1294" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1295" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1295" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1295.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1296" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-1296" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1297" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1297" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1297.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1298" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-1298" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1299" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1299" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1299.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1300" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1300" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1301" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1301" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1301.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1302" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-1302" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1303" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1303" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1303.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1304" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:base64Binary to xs:base64Binary is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1304" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1304.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1305" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:base64Binary as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1305" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1305.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1306" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:base64Binary to xs:hexBinary is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1306" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1306.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1307" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:hexBinary as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1307" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1307.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1308" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-1308" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1309" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1309" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1309.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1310" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:base64Binary to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-1310" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1311" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:base64Binary as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1311" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1311.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1312" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:base64Binary as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-1312" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1313" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:hexBinary constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-1313" 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-SeqExprCast-1314" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:hexBinary constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-1314" 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-SeqExprCast-1315" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:hexBinary constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-1315" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1315.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1316" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:hexBinary.</description>
      <query name="K-SeqExprCast-1316" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1316.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1317" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>An empty string is a valid lexical representation of xs:hexBinary.</description>
      <query name="K-SeqExprCast-1317" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1317.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1318" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "0FB7" .</description>
      <query name="K-SeqExprCast-1318" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1318.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1319" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:hexBinary, with the boolean() function.</description>
      <query name="K-SeqExprCast-1319" 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-SeqExprCast-1320" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:hexBinary to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1320" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1320.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1321" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1321" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1321.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1322" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:hexBinary to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1322" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1322.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1323" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1323" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1323.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1324" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-1324" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1325" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1325" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1325.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1326" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-1326" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1327" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1327" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1327.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1328" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-1328" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1329" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1329" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1329.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1330" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-1330" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1331" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1331" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1331.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1332" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-1332" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1333" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1333" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1333.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1334" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1334" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1335" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1335" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1335.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1336" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1336" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1337" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1337" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1337.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1338" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-1338" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1339" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1339" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1339.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1340" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-1340" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1341" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1341" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1341.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1342" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-1342" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1343" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1343" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1343.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1344" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1344" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1345" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1345" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1345.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1346" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-1346" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1347" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1347" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1347.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1348" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-1348" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1349" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1349" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1349.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1350" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-1350" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1351" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1351" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1351.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1352" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1352" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1353" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1353" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1353.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1354" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-1354" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1355" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1355" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1355.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1356" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:hexBinary to xs:base64Binary is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1356" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1356.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1357" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:base64Binary as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1357" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1357.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1358" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:hexBinary to xs:hexBinary is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1358" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1358.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1359" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:hexBinary as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1359" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1359.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1360" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-1360" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1361" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1361" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1361.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1362" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:hexBinary to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-1362" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1363" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:hexBinary as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1363" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1363.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1364" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:hexBinary as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-1364" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1365" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:anyURI constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-1365" 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-SeqExprCast-1366" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:anyURI constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-1366" 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-SeqExprCast-1367" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:anyURI constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-1367" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1367.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1368" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:anyURI.</description>
      <query name="K-SeqExprCast-1368" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1368.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1369" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>An empty string is a valid lexical representation of xs:anyURI.</description>
      <query name="K-SeqExprCast-1369" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1369.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1370" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a simple xs:untypedAtomic value to "http://www.example.com/an/arbitrary/URI.ext" .</description>
      <query name="K-SeqExprCast-1370" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1370.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1371" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Applying fn:boolean() to a value of type xs:anyURI that has the lexical value ' "http://www.example.com/an/arbitrary/URI.ext" ' should result in the boolean value true.</description>
      <query name="K-SeqExprCast-1371" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1371.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1372" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:anyURI to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1372" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1372.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1373" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1373" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1373.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1374" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:anyURI to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1374" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1374.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1375" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1375" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1375.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1376" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-1376" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1377" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1377" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1377.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1378" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-1378" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1379" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1379" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1379.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1380" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-1380" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1381" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1381" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1381.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1382" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-1382" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1383" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1383" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1383.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1384" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-1384" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1385" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1385" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1385.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1386" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1386" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1387" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1387" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1387.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1388" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1388" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1389" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1389" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1389.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1390" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-1390" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1391" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1391" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1391.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1392" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-1392" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1393" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1393" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1393.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1394" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-1394" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1395" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1395" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1395.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1396" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1396" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1397" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1397" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1397.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1398" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-1398" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1399" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1399" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1399.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1400" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-1400" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1401" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1401" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1401.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1402" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-1402" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1403" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1403" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1403.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1404" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1404" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1405" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1405" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1405.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1406" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-1406" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1407" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1407" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1407.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1408" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-1408" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1409" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1409" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1409.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1410" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-1410" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1411" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1411" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1411.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1412" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:anyURI to xs:anyURI is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1412" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1412.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1413" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:anyURI as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1413" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1413.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1414" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:anyURI to xs:QName isn't allowed.</description>
      <query name="K-SeqExprCast-1414" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1415" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:anyURI as source type and xs:QName as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1415" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1415.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1416" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:anyURI as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-1416" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1417" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:QName constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-1417" 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-SeqExprCast-1418" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:QName constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-1418" 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-SeqExprCast-1419" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Verify with 'instance of' that the xs:QName constructor function produces values of the correct type. The subsequence() function makes it more difficult for optimizers to take short cuts based on static type information.</description>
      <query name="K-SeqExprCast-1419" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1419.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1420" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>A simple test exercising the whitespace facet for type xs:QName.</description>
      <query name="K-SeqExprCast-1420" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1420.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1421" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An empty string is not a valid lexical representation of xs:QName.</description>
      <query name="K-SeqExprCast-1421" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1422" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>It is not possible to extract an Effective Boolean Value from the type xs:QName, with the boolean() function.</description>
      <query name="K-SeqExprCast-1422" 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-SeqExprCast-1423" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:QName to xs:untypedAtomic is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1423" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1423.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1424" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:untypedAtomic as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1424" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1424.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1425" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting from xs:QName to xs:string is allowed and should always succeed.</description>
      <query name="K-SeqExprCast-1425" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1425.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1426" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:string as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1426" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1426.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1427" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:float isn't allowed.</description>
      <query name="K-SeqExprCast-1427" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1428" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:float as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1428" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1428.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1429" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:double isn't allowed.</description>
      <query name="K-SeqExprCast-1429" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1430" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:double as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1430" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1430.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1431" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:decimal isn't allowed.</description>
      <query name="K-SeqExprCast-1431" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1432" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:decimal as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1432" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1432.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1433" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:integer isn't allowed.</description>
      <query name="K-SeqExprCast-1433" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1434" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:integer as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1434" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1434.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1435" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:duration isn't allowed.</description>
      <query name="K-SeqExprCast-1435" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1436" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:duration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1436" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1436.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1437" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:yearMonthDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1437" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1438" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:yearMonthDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1438" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1438.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1439" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:dayTimeDuration isn't allowed.</description>
      <query name="K-SeqExprCast-1439" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1440" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:dayTimeDuration as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1440" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1440.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1441" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:dateTime isn't allowed.</description>
      <query name="K-SeqExprCast-1441" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1442" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:dateTime as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1442" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1442.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1443" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:time isn't allowed.</description>
      <query name="K-SeqExprCast-1443" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1444" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:time as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1444" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1444.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1445" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:date isn't allowed.</description>
      <query name="K-SeqExprCast-1445" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1446" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:date as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1446" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1446.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1447" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:gYearMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1447" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1448" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:gYearMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1448" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1448.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1449" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:gYear isn't allowed.</description>
      <query name="K-SeqExprCast-1449" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1450" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:gYear as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1450" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1450.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1451" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:gMonthDay isn't allowed.</description>
      <query name="K-SeqExprCast-1451" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1452" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:gMonthDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1452" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1452.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1453" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:gDay isn't allowed.</description>
      <query name="K-SeqExprCast-1453" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1454" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:gDay as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1454" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1454.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1455" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:gMonth isn't allowed.</description>
      <query name="K-SeqExprCast-1455" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1456" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:gMonth as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1456" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1456.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1457" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:boolean isn't allowed.</description>
      <query name="K-SeqExprCast-1457" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1458" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:boolean as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1458" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1458.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1459" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:base64Binary isn't allowed.</description>
      <query name="K-SeqExprCast-1459" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1460" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:base64Binary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1460" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1460.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1461" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:hexBinary isn't allowed.</description>
      <query name="K-SeqExprCast-1461" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1462" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:hexBinary as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1462" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1462.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1463" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Casting from xs:QName to xs:anyURI isn't allowed.</description>
      <query name="K-SeqExprCast-1463" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1464" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:anyURI as target type should always evaluate to false.</description>
      <query name="K-SeqExprCast-1464" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1464.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1465" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>'castable as' involving xs:QName as source type and xs:QName as target type should always evaluate to true.</description>
      <query name="K-SeqExprCast-1465" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-SeqExprCast-1465.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1466" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'castable as' involving xs:QName as sourceType and xs:NOTATION should fail due to it involving xs:NOTATION.</description>
      <query name="K-SeqExprCast-1466" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-SeqExprCast-1467" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:NOTATION constructor function must be passed exactly one argument, not zero.</description>
      <query name="K-SeqExprCast-1467" 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-SeqExprCast-1468" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The xs:NOTATION constructor function must be passed exactly one argument, not two.</description>
      <query name="K-SeqExprCast-1468" 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-SeqExprCast-1469" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1469" 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-SeqExprCast-1470" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1470" 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-SeqExprCast-1471" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1471" 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-SeqExprCast-1472" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1472" 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-SeqExprCast-1473" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1473" 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-SeqExprCast-1474" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1474" 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-SeqExprCast-1475" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1475" 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-SeqExprCast-1476" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1476" 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-SeqExprCast-1477" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1477" 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-SeqExprCast-1478" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1478" 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-SeqExprCast-1479" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1479" 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-SeqExprCast-1480" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1480" 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-SeqExprCast-1481" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1481" 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-SeqExprCast-1482" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1482" 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-SeqExprCast-1483" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1483" 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-SeqExprCast-1484" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1484" 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-SeqExprCast-1485" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1485" 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-SeqExprCast-1486" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1486" 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-SeqExprCast-1487" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1487" 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-SeqExprCast-1488" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1488" 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-SeqExprCast-1489" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1489" 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-SeqExprCast-1490" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1490" 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-SeqExprCast-1491" FilePath="Expressions/exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No constructor function exists for xs:NOTATION.</description>
      <query name="K-SeqExprCast-1491" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0017</expected-error>
      <expected-error>XPST0080</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-SeqExprCast-1" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast to xs:QName where the prefix is declared in the prolog.</description>
      <query name="K2-SeqExprCast-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-SeqExprCast-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-2" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Casting the empty sequence to xs:QName? is ok.</description>
      <query name="K2-SeqExprCast-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-SeqExprCast-2.txt</output-file>
      <expected-error>XPST0005</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-3" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a small, the smallest if such a limit exists, to nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-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-SeqExprCast-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-4" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a small, the smallest if such a limit exists, to negativeInteger.</description>
      <query name="K2-SeqExprCast-4" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-5" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a small, the smallest if such a limit exists, to long.</description>
      <query name="K2-SeqExprCast-5" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-6" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a small, the smallest if such a limit exists, to int.</description>
      <query name="K2-SeqExprCast-6" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-7" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a small, the smallest if such a limit exists, to short.</description>
      <query name="K2-SeqExprCast-7" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-7.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-8" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a small, the smallest if such a limit exists, to byte.</description>
      <query name="K2-SeqExprCast-8" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-8.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-9" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a small, the smallest if such a limit exists, to nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-9" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-9.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-10" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a small, the smallest if such a limit exists, to unsignedLong.</description>
      <query name="K2-SeqExprCast-10" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-10.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-11" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a small, the smallest if such a limit exists, to unsignedInt.</description>
      <query name="K2-SeqExprCast-11" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-11.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-12" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a small, the smallest if such a limit exists, to unsignedByte.</description>
      <query name="K2-SeqExprCast-12" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-12.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-13" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a small, the smallest if such a limit exists, to unsignedShort.</description>
      <query name="K2-SeqExprCast-13" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-13.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-14" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a small, the smallest if such a limit exists, to positiveInteger.</description>
      <query name="K2-SeqExprCast-14" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-14.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-15" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a large, the largest if such a limit exists, to nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-15" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-16" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a large, the largest if such a limit exists, to negativeInteger.</description>
      <query name="K2-SeqExprCast-16" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-16.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-17" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a large, the largest if such a limit exists, to long.</description>
      <query name="K2-SeqExprCast-17" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-17.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-18" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a large, the largest if such a limit exists, to int.</description>
      <query name="K2-SeqExprCast-18" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-18.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-19" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a large, the largest if such a limit exists, to short.</description>
      <query name="K2-SeqExprCast-19" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-19.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-20" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a large, the largest if such a limit exists, to byte.</description>
      <query name="K2-SeqExprCast-20" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-20.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-21" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a large, the largest if such a limit exists, to nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-21" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-21.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-22" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a large, the largest if such a limit exists, to unsignedLong.</description>
      <query name="K2-SeqExprCast-22" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-22.txt</output-file>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-23" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a large, the largest if such a limit exists, to unsignedInt.</description>
      <query name="K2-SeqExprCast-23" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-23.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-24" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a large, the largest if such a limit exists, to unsignedShort.</description>
      <query name="K2-SeqExprCast-24" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-24.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-25" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a large, the largest if such a limit exists, to unsignedByte.</description>
      <query name="K2-SeqExprCast-25" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-25.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-26" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass a large, the largest if such a limit exists, to positiveInteger.</description>
      <query name="K2-SeqExprCast-26" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-26.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-27" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:false() to nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-27" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-27.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-28" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast fn:true() to nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-28" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-29" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast fn:false() to negativeInteger.</description>
      <query name="K2-SeqExprCast-29" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-30" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast fn:true() to negativeInteger.</description>
      <query name="K2-SeqExprCast-30" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-31" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:false() to long.</description>
      <query name="K2-SeqExprCast-31" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-31.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-32" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:true() to long.</description>
      <query name="K2-SeqExprCast-32" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-32.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-33" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:false() to int.</description>
      <query name="K2-SeqExprCast-33" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-33.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-34" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:true() to int.</description>
      <query name="K2-SeqExprCast-34" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-34.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-35" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:false() to short.</description>
      <query name="K2-SeqExprCast-35" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-35.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-36" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:true() to short.</description>
      <query name="K2-SeqExprCast-36" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-36.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-37" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:false() to byte.</description>
      <query name="K2-SeqExprCast-37" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-37.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-38" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:true() to byte.</description>
      <query name="K2-SeqExprCast-38" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-38.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-39" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:false() to nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-39" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-39.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-40" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:true() to nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-40" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-40.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-41" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:false() to unsignedLong.</description>
      <query name="K2-SeqExprCast-41" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-41.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-42" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:true() to unsignedLong.</description>
      <query name="K2-SeqExprCast-42" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-42.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-43" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:false() to unsignedInt.</description>
      <query name="K2-SeqExprCast-43" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-43.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-44" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:true() to unsignedInt.</description>
      <query name="K2-SeqExprCast-44" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-44.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-45" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:false() to unsignedShort.</description>
      <query name="K2-SeqExprCast-45" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-45.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-46" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:true() to unsignedShort.</description>
      <query name="K2-SeqExprCast-46" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-46.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-47" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:false() to unsignedByte.</description>
      <query name="K2-SeqExprCast-47" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-47.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-48" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:true() to unsignedByte.</description>
      <query name="K2-SeqExprCast-48" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-48.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-49" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast fn:false() to positiveInteger.</description>
      <query name="K2-SeqExprCast-49" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-50" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:true() to positiveInteger.</description>
      <query name="K2-SeqExprCast-50" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-50.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-51" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>-0 is an invalid value for xs:negativeInteger.</description>
      <query name="K2-SeqExprCast-51" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-52" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The minus sign is allowed unsignedLong. S4S is considered normative, and WXS 1.1 adjusted the prose to say the same.</description>
      <query name="K2-SeqExprCast-52" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-52.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-53" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The minus sign is allowed unsignedInt. S4S is considered normative, and WXS 1.1 adjusted the prose to say the same.</description>
      <query name="K2-SeqExprCast-53" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-53.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-54" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The minus sign is allowed unsignedShort. S4S is considered normative, and WXS 1.1 adjusted the prose to say the same.</description>
      <query name="K2-SeqExprCast-54" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-54.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-55" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The minus sign is allowed in unsignedByte. S4S is considered normative, and WXS 1.1 adjusted the prose to say the same.</description>
      <query name="K2-SeqExprCast-55" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-55.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-56" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The minus sign is prohibited in positiveInteger.</description>
      <query name="K2-SeqExprCast-56" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-57" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The minus sign is prohibited in positiveInteger.</description>
      <query name="K2-SeqExprCast-57" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-58" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The plus sign is allowed in unsignedLong. S4S is considered normative, and WXS 1.1 adjusted the prose to say the same.</description>
      <query name="K2-SeqExprCast-58" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-58.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-59" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The plus sign is allowed in unsignedInt. S4S is considered normative, and WXS 1.1 adjusted the prose to say the same.</description>
      <query name="K2-SeqExprCast-59" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-59.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-60" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The plus sign is allowed in unsignedShort. S4S is considered normative, and WXS 1.1 adjusted the prose to say the same.</description>
      <query name="K2-SeqExprCast-60" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-60.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-61" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The plus sign is allowed in unsignedByte. S4S is considered normative, and WXS 1.1 adjusted the prose to say the same.</description>
      <query name="K2-SeqExprCast-61" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-61.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-62" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The plus sign is prohibited in negativeInteger.</description>
      <query name="K2-SeqExprCast-62" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-63" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The plus sign is prohibited in nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-63" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-64" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The minus sign is allowed in nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-64" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-64.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-65" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The minus sign is allowed in negativeInteger.</description>
      <query name="K2-SeqExprCast-65" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-65.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-66" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The minus sign is allowed in nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-66" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-66.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-67" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The minus sign is allowed in nonPositiveInteger(#2).</description>
      <query name="K2-SeqExprCast-67" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-67.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-68" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure a plus sign is accepted for positiveInteger.</description>
      <query name="K2-SeqExprCast-68" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-68.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-69" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure a plus sign is accepted for nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-69" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-69.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-70" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure a plus sign is accepted for nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-70" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-70.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-71" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Multiple minus signs is disallowed in nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-71" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-72" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Multiple minus signs is disallowed in negativeInteger.</description>
      <query name="K2-SeqExprCast-72" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-73" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Multiple minus signs is disallowed in nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-73" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-74" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Multiple minus signs is disallowed in nonPositiveInteger(#2).</description>
      <query name="K2-SeqExprCast-74" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-75" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Multiple plus signs is allowed in positiveInteger.</description>
      <query name="K2-SeqExprCast-75" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-76" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Multiple plus signs is allowed in nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-76" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-77" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Multiple plus signs is allowed in nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-77" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-78" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too small value to long.</description>
      <query name="K2-SeqExprCast-78" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-79" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too small value to int.</description>
      <query name="K2-SeqExprCast-79" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-80" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too small value to short.</description>
      <query name="K2-SeqExprCast-80" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-81" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too small value to byte.</description>
      <query name="K2-SeqExprCast-81" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-82" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too small value to nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-82" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-83" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too small value to unsignedLong.</description>
      <query name="K2-SeqExprCast-83" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-84" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too small value to unsignedInt.</description>
      <query name="K2-SeqExprCast-84" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-85" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too small value to unsignedShort.</description>
      <query name="K2-SeqExprCast-85" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-86" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too small value to unsignedByte.</description>
      <query name="K2-SeqExprCast-86" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-87" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too small value to positiveInteger.</description>
      <query name="K2-SeqExprCast-87" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-88" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too large value to nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-88" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-89" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too large value to negativeInteger.</description>
      <query name="K2-SeqExprCast-89" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-90" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too large value to long.</description>
      <query name="K2-SeqExprCast-90" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
      <expected-error>FOAR0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-91" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too large value to int.</description>
      <query name="K2-SeqExprCast-91" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-92" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too large value to short.</description>
      <query name="K2-SeqExprCast-92" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-93" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too large value to byte.</description>
      <query name="K2-SeqExprCast-93" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-94" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-94" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-95" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to negativeInteger.</description>
      <query name="K2-SeqExprCast-95" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-96" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to long.</description>
      <query name="K2-SeqExprCast-96" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-97" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to int.</description>
      <query name="K2-SeqExprCast-97" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-98" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to short.</description>
      <query name="K2-SeqExprCast-98" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-99" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to byte.</description>
      <query name="K2-SeqExprCast-99" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-100" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-100" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-101" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to unsignedLong.</description>
      <query name="K2-SeqExprCast-101" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-102" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to unsignedInt.</description>
      <query name="K2-SeqExprCast-102" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-103" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to unsignedByte.</description>
      <query name="K2-SeqExprCast-103" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-104" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to unsignedShort.</description>
      <query name="K2-SeqExprCast-104" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-105" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to positiveInteger.</description>
      <query name="K2-SeqExprCast-105" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-106" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Fractions are disallowed in nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-106" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-107" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Fractions are disallowed in negativeInteger.</description>
      <query name="K2-SeqExprCast-107" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-108" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Fractions are disallowed in long.</description>
      <query name="K2-SeqExprCast-108" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-109" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Fractions are disallowed in int.</description>
      <query name="K2-SeqExprCast-109" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-110" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Fractions are disallowed in short.</description>
      <query name="K2-SeqExprCast-110" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-111" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Fractions are disallowed in byte.</description>
      <query name="K2-SeqExprCast-111" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-112" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Fractions are disallowed in nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-112" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-113" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Fractions are disallowed in unsignedLong.</description>
      <query name="K2-SeqExprCast-113" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-114" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Fractions are disallowed in unsignedInt.</description>
      <query name="K2-SeqExprCast-114" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-115" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Fractions are disallowed in unsignedByte.</description>
      <query name="K2-SeqExprCast-115" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-116" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Fractions are disallowed in unsignedShort.</description>
      <query name="K2-SeqExprCast-116" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-117" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Fractions are disallowed in positiveInteger.</description>
      <query name="K2-SeqExprCast-117" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-118" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-118" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-119" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for nonPositiveInteger(#2).</description>
      <query name="K2-SeqExprCast-119" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-120" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for negativeInteger.</description>
      <query name="K2-SeqExprCast-120" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-121" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for long.</description>
      <query name="K2-SeqExprCast-121" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-122" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for int.</description>
      <query name="K2-SeqExprCast-122" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-123" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for short.</description>
      <query name="K2-SeqExprCast-123" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-124" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for byte.</description>
      <query name="K2-SeqExprCast-124" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-125" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for long.</description>
      <query name="K2-SeqExprCast-125" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-126" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for int.</description>
      <query name="K2-SeqExprCast-126" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-127" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for short.</description>
      <query name="K2-SeqExprCast-127" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-128" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for byte.</description>
      <query name="K2-SeqExprCast-128" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-129" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-129" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-130" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for nonNegativeInteger(#2).</description>
      <query name="K2-SeqExprCast-130" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-131" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Space between the sign and the digits is disallowed for positiveInteger.</description>
      <query name="K2-SeqExprCast-131" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-132" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-132" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-132.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-133" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-133" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-133.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-134" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to negativeInteger.</description>
      <query name="K2-SeqExprCast-134" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-134.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-135" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to long.</description>
      <query name="K2-SeqExprCast-135" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-135.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-136" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to int.</description>
      <query name="K2-SeqExprCast-136" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-136.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-137" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to short.</description>
      <query name="K2-SeqExprCast-137" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-137.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-138" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to byte.</description>
      <query name="K2-SeqExprCast-138" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-138.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-139" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-139" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-139.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-140" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to unsignedLong.</description>
      <query name="K2-SeqExprCast-140" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-140.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-141" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to unsignedInt.</description>
      <query name="K2-SeqExprCast-141" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-141.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-142" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to unsignedByte.</description>
      <query name="K2-SeqExprCast-142" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-142.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-143" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to unsignedShort.</description>
      <query name="K2-SeqExprCast-143" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-143.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-144" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass preceding zeros to positiveInteger.</description>
      <query name="K2-SeqExprCast-144" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-144.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-145" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Hexa-decimal notation isn't allowed in nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-145" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-146" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Hexa-decimal notation isn't allowed in negativeInteger.</description>
      <query name="K2-SeqExprCast-146" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-147" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Hexa-decimal notation isn't allowed in long.</description>
      <query name="K2-SeqExprCast-147" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-148" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Hexa-decimal notation isn't allowed in int.</description>
      <query name="K2-SeqExprCast-148" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-149" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Hexa-decimal notation isn't allowed in short.</description>
      <query name="K2-SeqExprCast-149" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-150" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Hexa-decimal notation isn't allowed in byte.</description>
      <query name="K2-SeqExprCast-150" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-151" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Hexa-decimal notation isn't allowed in nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-151" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-152" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Hexa-decimal notation isn't allowed in unsignedLong.</description>
      <query name="K2-SeqExprCast-152" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-153" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Hexa-decimal notation isn't allowed in unsignedInt.</description>
      <query name="K2-SeqExprCast-153" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-154" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Hexa-decimal notation isn't allowed in unsignedByte.</description>
      <query name="K2-SeqExprCast-154" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-155" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Hexa-decimal notation isn't allowed in unsignedShort.</description>
      <query name="K2-SeqExprCast-155" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-156" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Hexa-decimal notation isn't allowed in positiveInteger.</description>
      <query name="K2-SeqExprCast-156" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-157" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:false() to xs:language.</description>
      <query name="K2-SeqExprCast-157" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-157.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-158" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast fn:true() to xs:language.</description>
      <query name="K2-SeqExprCast-158" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-158.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-159" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast an empty string to xs:language.</description>
      <query name="K2-SeqExprCast-159" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-160" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a too long string to xs:language.</description>
      <query name="K2-SeqExprCast-160" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-161" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-161" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-162" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-162" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-163" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-163" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-164" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-164" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-165" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-165" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-166" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-166" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-167" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-167" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-168" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-168" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-169" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-169" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-170" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-170" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-171" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-171" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-171.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-172" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-172" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-172.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-173" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-173" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-173.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-174" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast string with invalid characters to xs:language.</description>
      <query name="K2-SeqExprCast-174" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-174.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-175" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast an integer to xs:language.</description>
      <query name="K2-SeqExprCast-175" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-176" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a short to xs:language.</description>
      <query name="K2-SeqExprCast-176" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-177" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a xs:date to xs:language.</description>
      <query name="K2-SeqExprCast-177" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-178" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a xs:time to xs:language.</description>
      <query name="K2-SeqExprCast-178" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-179" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast a xs:dateTime to xs:language.</description>
      <query name="K2-SeqExprCast-179" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-180" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No function by name xs:name exists.</description>
      <query name="K2-SeqExprCast-180" 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="K2-SeqExprCast-181" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass invalid input to xs:Name.</description>
      <query name="K2-SeqExprCast-181" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-182" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass invalid input to xs:Name.</description>
      <query name="K2-SeqExprCast-182" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-183" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass invalid input to xs:Name.</description>
      <query name="K2-SeqExprCast-183" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-184" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass invalid input to xs:Name.</description>
      <query name="K2-SeqExprCast-184" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-185" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass invalid input to xs:Name.</description>
      <query name="K2-SeqExprCast-185" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-186" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass tricky, valid input to xs:Name.</description>
      <query name="K2-SeqExprCast-186" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-186.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-187" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass tricky, valid input to xs:Name.</description>
      <query name="K2-SeqExprCast-187" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-187.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-188" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass tricky, valid input to xs:Name.</description>
      <query name="K2-SeqExprCast-188" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-188.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-189" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass tricky, valid input to xs:Name.</description>
      <query name="K2-SeqExprCast-189" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-189.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-190" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass tricky, valid input to xs:Name.</description>
      <query name="K2-SeqExprCast-190" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-190.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-191" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass tricky, valid input to xs:Name.</description>
      <query name="K2-SeqExprCast-191" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-191.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-SeqExprCast-192" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass an empty string to normalizedString.</description>
      <query name="K2-SeqExprCast-192" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-192.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-SeqExprCast-193" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Pass an empty string to token.</description>
      <query name="K2-SeqExprCast-193" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-193.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-194" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to language.</description>
      <query name="K2-SeqExprCast-194" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-195" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to NMTOKEN.</description>
      <query name="K2-SeqExprCast-195" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-196" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to Name.</description>
      <query name="K2-SeqExprCast-196" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-197" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to NCName.</description>
      <query name="K2-SeqExprCast-197" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-198" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to ID.</description>
      <query name="K2-SeqExprCast-198" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-199" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to IDREF.</description>
      <query name="K2-SeqExprCast-199" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-200" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an empty string to ENTITY.</description>
      <query name="K2-SeqExprCast-200" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-SeqExprCast-201" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>When casting to xs:QName, the declared default element namespace is considered.</description>
      <query name="K2-SeqExprCast-201" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-201.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-202" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Use complex input to xs:NMTOKEN.</description>
      <query name="K2-SeqExprCast-202" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-202.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-203" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Whitespace is disallowed inside NMOKEN.</description>
      <query name="K2-SeqExprCast-203" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-204" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The empty string is invalid in xs:NMTOKEN.</description>
      <query name="K2-SeqExprCast-204" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-205" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>The empty string is invalid in xs:NMTOKEN(#2).</description>
      <query name="K2-SeqExprCast-205" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-206" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass a single semi colon to xs:NMTOKEN.</description>
      <query name="K2-SeqExprCast-206" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-207" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Construct an xs:anyURI from an invalid string. However, in F&amp;O 17.1.1, it is said that "For xs:anyURI, the extent to which an implementation validates the lexical form of xs:anyURI is implementation dependent.".</description>
      <query name="K2-SeqExprCast-207" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-207.txt</output-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-208" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Use a large chunk of whitespace in an xs:anyURI.</description>
      <query name="K2-SeqExprCast-208" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-208.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-SeqExprCast-209" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Ensure that a large Unicode codepoint is handled correctly in xs:anyURI.</description>
      <query name="K2-SeqExprCast-209" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-209.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-210" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'%' is not a disallowed character and therefore it's not encoded before being considered for RFC 2396 validness.</description>
      <query name="K2-SeqExprCast-210" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-211" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No type by name xs:anyAtomic exists.</description>
      <query name="K2-SeqExprCast-211" 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="K2-SeqExprCast-212" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No type by name xs:anyAtomic exists(2).</description>
      <query name="K2-SeqExprCast-212" 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="K2-SeqExprCast-213" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast an xs:positiveInteger value to xs:double.</description>
      <query name="K2-SeqExprCast-213" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-213.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-214" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast an xs:int value to xs:double.</description>
      <query name="K2-SeqExprCast-214" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-214.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-215" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'Inf' is not a valid value for xs:double.</description>
      <query name="K2-SeqExprCast-215" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-216" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'Inf' is not a valid value for xs:float.</description>
      <query name="K2-SeqExprCast-216" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-217" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'-Inf' is not a valid value for xs:double.</description>
      <query name="K2-SeqExprCast-217" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-218" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'-Inf' is not a valid value for xs:float.</description>
      <query name="K2-SeqExprCast-218" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-219" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+Inf' is not a valid value for xs:double.</description>
      <query name="K2-SeqExprCast-219" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-220" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+Inf' is not a valid value for xs:float.</description>
      <query name="K2-SeqExprCast-220" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-221" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Whitespace is ignored for xs:float's lexical space.</description>
      <query name="K2-SeqExprCast-221" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-221.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-222" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Whitespace is ignored for xs:double's lexical space.</description>
      <query name="K2-SeqExprCast-222" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-222.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-223" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Whitespace is ignored for xs:float's lexical space(#2).</description>
      <query name="K2-SeqExprCast-223" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-223.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-224" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Whitespace is ignored for xs:double's lexical space(#2).</description>
      <query name="K2-SeqExprCast-224" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-224.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-225" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'nan' is not a valid value for xs:double.</description>
      <query name="K2-SeqExprCast-225" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-226" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'nan' is not a valid value for xs:float.</description>
      <query name="K2-SeqExprCast-226" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-227" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'- INF' is not a valid value for xs:double.</description>
      <query name="K2-SeqExprCast-227" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-228" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'- INF' is not a valid value for xs:float.</description>
      <query name="K2-SeqExprCast-228" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-229" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+ INF' is not a valid value for xs:double.</description>
      <query name="K2-SeqExprCast-229" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-230" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+ INF' is not a valid value for xs:float.</description>
      <query name="K2-SeqExprCast-230" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-231" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+INF' is not a valid value for xs:double.</description>
      <query name="K2-SeqExprCast-231" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-232" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+INF' is not a valid value for xs:float.</description>
      <query name="K2-SeqExprCast-232" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-233" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'Inf' is not a valid value for xs:decimal.</description>
      <query name="K2-SeqExprCast-233" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-234" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'-Inf' is not a valid value for xs:decimal.</description>
      <query name="K2-SeqExprCast-234" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-235" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+Inf' is not a valid value for xs:decimal.</description>
      <query name="K2-SeqExprCast-235" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-236" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'nan' is not a valid value for xs:decimal.</description>
      <query name="K2-SeqExprCast-236" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-237" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'- INF' is not a valid value for xs:decimal.</description>
      <query name="K2-SeqExprCast-237" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-238" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+ INF' is not a valid value for xs:decimal.</description>
      <query name="K2-SeqExprCast-238" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-239" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'+INF' is not a valid value for xs:decimal.</description>
      <query name="K2-SeqExprCast-239" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-240" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'INF' is not a valid value for xs:decimal.</description>
      <query name="K2-SeqExprCast-240" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-241" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>'NaN' is not a valid value for xs:decimal.</description>
      <query name="K2-SeqExprCast-241" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-242" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:decimal.</description>
      <query name="K2-SeqExprCast-242" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-243" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:decimal.</description>
      <query name="K2-SeqExprCast-243" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-244" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:integer.</description>
      <query name="K2-SeqExprCast-244" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-245" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:integer.</description>
      <query name="K2-SeqExprCast-245" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-246" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:decimal.</description>
      <query name="K2-SeqExprCast-246" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-247" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:decimal.</description>
      <query name="K2-SeqExprCast-247" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-248" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:integer.</description>
      <query name="K2-SeqExprCast-248" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-249" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:integer.</description>
      <query name="K2-SeqExprCast-249" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-250" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:decimal.</description>
      <query name="K2-SeqExprCast-250" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-251" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:decimal.</description>
      <query name="K2-SeqExprCast-251" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-252" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:integer.</description>
      <query name="K2-SeqExprCast-252" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-253" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:integer.</description>
      <query name="K2-SeqExprCast-253" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-254" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:byte.</description>
      <query name="K2-SeqExprCast-254" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-255" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:byte.</description>
      <query name="K2-SeqExprCast-255" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-256" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:byte.</description>
      <query name="K2-SeqExprCast-256" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-257" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:byte.</description>
      <query name="K2-SeqExprCast-257" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-258" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:byte.</description>
      <query name="K2-SeqExprCast-258" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-259" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:byte.</description>
      <query name="K2-SeqExprCast-259" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-260" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-260" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-261" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-261" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-262" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-262" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-263" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-263" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-264" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-264" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-265" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:nonPositiveInteger.</description>
      <query name="K2-SeqExprCast-265" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-266" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:negativeInteger.</description>
      <query name="K2-SeqExprCast-266" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-267" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:negativeInteger.</description>
      <query name="K2-SeqExprCast-267" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-268" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:negativeInteger.</description>
      <query name="K2-SeqExprCast-268" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-269" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:negativeInteger.</description>
      <query name="K2-SeqExprCast-269" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-270" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:negativeInteger.</description>
      <query name="K2-SeqExprCast-270" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-271" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:negativeInteger.</description>
      <query name="K2-SeqExprCast-271" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-272" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:long.</description>
      <query name="K2-SeqExprCast-272" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-273" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:long.</description>
      <query name="K2-SeqExprCast-273" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-274" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:long.</description>
      <query name="K2-SeqExprCast-274" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-275" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:long.</description>
      <query name="K2-SeqExprCast-275" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-276" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:long.</description>
      <query name="K2-SeqExprCast-276" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-277" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:long.</description>
      <query name="K2-SeqExprCast-277" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-278" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:int.</description>
      <query name="K2-SeqExprCast-278" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-279" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:int.</description>
      <query name="K2-SeqExprCast-279" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-280" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:int.</description>
      <query name="K2-SeqExprCast-280" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-281" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:int.</description>
      <query name="K2-SeqExprCast-281" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-282" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:int.</description>
      <query name="K2-SeqExprCast-282" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-283" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:int.</description>
      <query name="K2-SeqExprCast-283" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-284" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:short.</description>
      <query name="K2-SeqExprCast-284" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-285" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:short.</description>
      <query name="K2-SeqExprCast-285" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-286" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:short.</description>
      <query name="K2-SeqExprCast-286" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-287" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:short.</description>
      <query name="K2-SeqExprCast-287" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-288" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:short.</description>
      <query name="K2-SeqExprCast-288" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-289" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:short.</description>
      <query name="K2-SeqExprCast-289" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-290" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:byte.</description>
      <query name="K2-SeqExprCast-290" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-291" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:byte.</description>
      <query name="K2-SeqExprCast-291" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-292" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:byte.</description>
      <query name="K2-SeqExprCast-292" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-293" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:byte.</description>
      <query name="K2-SeqExprCast-293" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-294" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:byte.</description>
      <query name="K2-SeqExprCast-294" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-295" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:byte.</description>
      <query name="K2-SeqExprCast-295" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-296" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-296" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-297" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-297" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-298" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-298" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-299" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-299" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
      <expected-error>XPST0005</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-300" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-300" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-301" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:nonNegativeInteger.</description>
      <query name="K2-SeqExprCast-301" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-302" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:unsignedLong.</description>
      <query name="K2-SeqExprCast-302" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-303" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:unsignedLong.</description>
      <query name="K2-SeqExprCast-303" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-304" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:unsignedLong.</description>
      <query name="K2-SeqExprCast-304" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-305" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:unsignedLong.</description>
      <query name="K2-SeqExprCast-305" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-306" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:unsignedLong.</description>
      <query name="K2-SeqExprCast-306" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-307" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:unsignedLong.</description>
      <query name="K2-SeqExprCast-307" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-308" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:unsignedInt.</description>
      <query name="K2-SeqExprCast-308" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-309" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:unsignedInt.</description>
      <query name="K2-SeqExprCast-309" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-310" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:unsignedInt.</description>
      <query name="K2-SeqExprCast-310" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-311" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:unsignedInt.</description>
      <query name="K2-SeqExprCast-311" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-312" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:unsignedInt.</description>
      <query name="K2-SeqExprCast-312" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-313" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:unsignedInt.</description>
      <query name="K2-SeqExprCast-313" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-314" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:unsignedShort.</description>
      <query name="K2-SeqExprCast-314" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-315" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:unsignedShort.</description>
      <query name="K2-SeqExprCast-315" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-316" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:unsignedShort.</description>
      <query name="K2-SeqExprCast-316" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-317" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:unsignedShort.</description>
      <query name="K2-SeqExprCast-317" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-318" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:unsignedShort.</description>
      <query name="K2-SeqExprCast-318" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-319" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:unsignedShort.</description>
      <query name="K2-SeqExprCast-319" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-320" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:unsignedByte.</description>
      <query name="K2-SeqExprCast-320" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-321" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:unsignedByte.</description>
      <query name="K2-SeqExprCast-321" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-322" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:unsignedByte.</description>
      <query name="K2-SeqExprCast-322" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-323" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:unsignedByte.</description>
      <query name="K2-SeqExprCast-323" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-324" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:unsignedByte.</description>
      <query name="K2-SeqExprCast-324" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-325" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:unsignedByte.</description>
      <query name="K2-SeqExprCast-325" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-326" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(-INF) to xs:unsignedInt.</description>
      <query name="K2-SeqExprCast-326" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-327" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(-INF) to xs:unsignedInt.</description>
      <query name="K2-SeqExprCast-327" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-328" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(INF) to xs:unsignedInt.</description>
      <query name="K2-SeqExprCast-328" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-329" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(INF) to xs:unsignedInt.</description>
      <query name="K2-SeqExprCast-329" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-330" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float(NaN) to xs:unsignedInt.</description>
      <query name="K2-SeqExprCast-330" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-331" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double(NaN) to xs:unsignedInt.</description>
      <query name="K2-SeqExprCast-331" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FOCA0002</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-332" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>No function by name xs:unsignedInteger exists.</description>
      <query name="K2-SeqExprCast-332" 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="K2-SeqExprCast-333" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:byte to xs:double.</description>
      <query name="K2-SeqExprCast-333" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-333.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-334" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:int to xs:double.</description>
      <query name="K2-SeqExprCast-334" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-334.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-335" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:long to xs:double.</description>
      <query name="K2-SeqExprCast-335" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-335.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-336" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:negativeInteger to xs:double.</description>
      <query name="K2-SeqExprCast-336" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-336.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-337" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:nonNegativeInteger to xs:double.</description>
      <query name="K2-SeqExprCast-337" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-337.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-338" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:nonPositiveInteger to xs:double.</description>
      <query name="K2-SeqExprCast-338" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-338.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-339" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:short to xs:double.</description>
      <query name="K2-SeqExprCast-339" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-339.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-340" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedByte to xs:double.</description>
      <query name="K2-SeqExprCast-340" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-340.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-341" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedInt to xs:double.</description>
      <query name="K2-SeqExprCast-341" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-341.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-342" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedInt to xs:double.</description>
      <query name="K2-SeqExprCast-342" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-342.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-343" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedLong to xs:double.</description>
      <query name="K2-SeqExprCast-343" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-343.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-344" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedShort to xs:double.</description>
      <query name="K2-SeqExprCast-344" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-344.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-345" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:byte to xs:float.</description>
      <query name="K2-SeqExprCast-345" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-345.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-346" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:int to xs:float.</description>
      <query name="K2-SeqExprCast-346" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-346.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-347" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:long to xs:float.</description>
      <query name="K2-SeqExprCast-347" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-347.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-348" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:negativeInteger to xs:float.</description>
      <query name="K2-SeqExprCast-348" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-348.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-349" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:nonNegativeInteger to xs:float.</description>
      <query name="K2-SeqExprCast-349" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-349.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-350" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:nonPositiveInteger to xs:float.</description>
      <query name="K2-SeqExprCast-350" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-350.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-351" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:short to xs:float.</description>
      <query name="K2-SeqExprCast-351" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-351.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-352" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedByte to xs:float.</description>
      <query name="K2-SeqExprCast-352" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-352.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-353" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedInt to xs:float.</description>
      <query name="K2-SeqExprCast-353" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-353.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-354" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedInt to xs:float.</description>
      <query name="K2-SeqExprCast-354" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-354.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-355" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedLong to xs:float.</description>
      <query name="K2-SeqExprCast-355" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-355.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-356" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedShort to xs:float.</description>
      <query name="K2-SeqExprCast-356" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-356.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-357" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:byte to xs:decimal.</description>
      <query name="K2-SeqExprCast-357" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-357.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-358" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:int to xs:decimal.</description>
      <query name="K2-SeqExprCast-358" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-358.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-359" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:long to xs:decimal.</description>
      <query name="K2-SeqExprCast-359" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-359.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-360" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:negativeInteger to xs:decimal.</description>
      <query name="K2-SeqExprCast-360" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-360.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-361" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:nonNegativeInteger to xs:decimal.</description>
      <query name="K2-SeqExprCast-361" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-361.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-362" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:nonPositiveInteger to xs:decimal.</description>
      <query name="K2-SeqExprCast-362" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-362.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-363" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:short to xs:decimal.</description>
      <query name="K2-SeqExprCast-363" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-363.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-364" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedByte to xs:decimal.</description>
      <query name="K2-SeqExprCast-364" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-364.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-365" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedInt to xs:decimal.</description>
      <query name="K2-SeqExprCast-365" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-365.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-366" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedInt to xs:decimal.</description>
      <query name="K2-SeqExprCast-366" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-366.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-367" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedLong to xs:decimal.</description>
      <query name="K2-SeqExprCast-367" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-367.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-368" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedShort to xs:decimal.</description>
      <query name="K2-SeqExprCast-368" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-368.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-369" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:byte to xs:string.</description>
      <query name="K2-SeqExprCast-369" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-369.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-370" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:int to xs:string.</description>
      <query name="K2-SeqExprCast-370" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-370.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-371" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:long to xs:string.</description>
      <query name="K2-SeqExprCast-371" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-371.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-372" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:negativeInteger to xs:string.</description>
      <query name="K2-SeqExprCast-372" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-372.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-373" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:nonNegativeInteger to xs:string.</description>
      <query name="K2-SeqExprCast-373" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-373.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-374" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:nonPositiveInteger to xs:string.</description>
      <query name="K2-SeqExprCast-374" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-374.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-375" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:short to xs:string.</description>
      <query name="K2-SeqExprCast-375" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-375.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-376" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedByte to xs:string.</description>
      <query name="K2-SeqExprCast-376" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-376.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-377" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedInt to xs:string.</description>
      <query name="K2-SeqExprCast-377" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-377.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-378" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedInt to xs:string.</description>
      <query name="K2-SeqExprCast-378" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-378.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-379" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedLong to xs:string.</description>
      <query name="K2-SeqExprCast-379" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-379.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-380" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedShort to xs:string.</description>
      <query name="K2-SeqExprCast-380" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-380.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-381" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:byte to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-381" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-381.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-382" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:int to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-382" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-382.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-383" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:long to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-383" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-383.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-384" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:negativeInteger to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-384" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-384.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-385" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:nonNegativeInteger to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-385" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-385.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-386" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:nonPositiveInteger to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-386" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-386.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-387" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:short to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-387" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-387.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-388" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedByte to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-388" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-388.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-389" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedInt to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-389" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-389.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-390" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedInt to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-390" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-390.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-391" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedLong to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-391" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-391.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-392" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedShort to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-392" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-392.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-393" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedShort to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-393" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-393.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-394" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:token to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-394" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-394.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-395" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:language to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-395" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-395.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-396" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:NMTOKEN to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-396" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-396.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-397" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:Name to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-397" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-397.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-398" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:NCName to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-398" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-398.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-399" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:ID to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-399" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-399.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-400" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:IDREF to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-400" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-400.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-401" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:ENTITY to xs:untypedAtomic.</description>
      <query name="K2-SeqExprCast-401" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-401.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-402" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:unsignedShort to xs:string.</description>
      <query name="K2-SeqExprCast-402" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-402.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-403" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:token to xs:string.</description>
      <query name="K2-SeqExprCast-403" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-403.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-404" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:language to xs:string.</description>
      <query name="K2-SeqExprCast-404" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-404.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-405" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:NMTOKEN to xs:string.</description>
      <query name="K2-SeqExprCast-405" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-405.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-406" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:Name to xs:string.</description>
      <query name="K2-SeqExprCast-406" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-406.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-407" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:NCName to xs:string.</description>
      <query name="K2-SeqExprCast-407" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-407.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-408" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:ID to xs:string.</description>
      <query name="K2-SeqExprCast-408" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-408.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-409" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:IDREF to xs:string.</description>
      <query name="K2-SeqExprCast-409" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-409.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-410" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast xs:ENTITY to xs:string.</description>
      <query name="K2-SeqExprCast-410" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-410.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-411" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast "a" to xs:language.</description>
      <query name="K2-SeqExprCast-411" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-411.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-412" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast "ab" to xs:language.</description>
      <query name="K2-SeqExprCast-412" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-412.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-413" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast "abc" to xs:language.</description>
      <query name="K2-SeqExprCast-413" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-413.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-414" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast "abcd" to xs:language.</description>
      <query name="K2-SeqExprCast-414" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-414.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-415" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast "abcde" to xs:language.</description>
      <query name="K2-SeqExprCast-415" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-415.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-416" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast "abcdef" to xs:language.</description>
      <query name="K2-SeqExprCast-416" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-416.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-417" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast "abcdefg" to xs:language.</description>
      <query name="K2-SeqExprCast-417" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-417.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-418" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast "abcdefgh" to xs:language.</description>
      <query name="K2-SeqExprCast-418" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-418.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-419" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast "abcdefgh-abcdefgh" to xs:language.</description>
      <query name="K2-SeqExprCast-419" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-419.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-420" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>The whitespace facet for xs:anyURI is collapse.</description>
      <query name="K2-SeqExprCast-420" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-420.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-421" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an invalid anyURI. The specifications are unclear on this, so various kinds of output is accepted, see W3C's public report 5705.</description>
      <query name="K2-SeqExprCast-421" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-421.txt</output-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-421-2.txt</output-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-422" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Pass an invalid anyURI(#2).</description>
      <query name="K2-SeqExprCast-422" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-423" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An URI without scheme.</description>
      <query name="K2-SeqExprCast-423" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-424" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>An URI without scheme, combined with a relative directory.</description>
      <query name="K2-SeqExprCast-424" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-425" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Serialize a set of xs:QName instances.</description>
      <query name="K2-SeqExprCast-425" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-425.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-SeqExprCast-426" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast a set of QName to xs:string.</description>
      <query name="K2-SeqExprCast-426" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">K2-SeqExprCast-426.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-427" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Use a relative URI with double slashes.</description>
      <query name="K2-SeqExprCast-427" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-427.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-428" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>A relatively large negative number, fed to xs:unsignedLong.</description>
      <query name="K2-SeqExprCast-428" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-429" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:-1:11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-429" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-430" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:+1:11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-430" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-431" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11: 1:11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-431" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-432" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:-1"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-432" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-433" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:-1"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-433" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-434" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:+1"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-434" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-435" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11: 1"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-435" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-436" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("-1:11:11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-436" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-437" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("+1:11:11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-437" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-438" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("+1:11:11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-438" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-439" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:1e0"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-439" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-440" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:1E0"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-440" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-441" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:1b0"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-441" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-442" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11: 10"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-442" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-443" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:11b33"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-443" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-444" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:111"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-444" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-445" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:11.+11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-445" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-446" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:11.-11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-446" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-447" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:11. 11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-447" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-448" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("24:00:00.1"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-448" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-449" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("24:01:00"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-449" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-450" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("24:00:01"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-450" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-451" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:11++1:11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-451" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-452" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:11+-1:11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-452" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-453" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:11+ 1:11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-453" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-454" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:11+11:+1"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-454" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-455" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:11+11:-1"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-455" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-456" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:11+11: 1"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-456" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-457" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-457" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-458" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("1 :11:11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-458" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-459" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time("11:11:1 "), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-459" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-460" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("+2002-12-11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-460" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-461" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date(" 111-11-11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-461" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-462" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date(" +11-11-11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-462" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-463" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("1111- 1-11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-463" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-464" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("-111-11-11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-464" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-465" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("+111-11-11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-465" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-466" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("1111-11- 1"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-466" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-467" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("1111-+1-11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-467" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-468" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("1111-11-+1"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-468" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-469" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("1111--1-11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-469" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-470" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("1111-11--1"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-470" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-471" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("1111-11-1F"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-471" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-472" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("0x10-11-11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-472" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-473" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("111 -11-11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-473" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-474" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("1111-1 -11"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-474" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-475" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date("1111-11-1 "), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-475" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-476" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:dateTime("2002-11-23"), which is an invalid lexical representation.</description>
      <query name="K2-SeqExprCast-476" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-477" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Serialize xs:gYear("0040").</description>
      <query name="K2-SeqExprCast-477" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-477.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-478" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Serialize xs:gYearMonth("0040-01").</description>
      <query name="K2-SeqExprCast-478" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-478.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-SeqExprCast-479" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Cast to xs:QName, using a namespace from an element constructor.</description>
      <query name="K2-SeqExprCast-479" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">K2-SeqExprCast-479.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-480" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>All primites in one query.</description>
      <query name="K2-SeqExprCast-480" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-480.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-481" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Try to cast inf to xs:decimal.</description>
      <query name="K2-SeqExprCast-481" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-482" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Try to cast 'inF' to xs:decimal.</description>
      <query name="K2-SeqExprCast-482" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-483" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Try to cast '-inF' to xs:decimal.</description>
      <query name="K2-SeqExprCast-483" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-484" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Try to cast 'inF ' to xs:decimal.</description>
      <query name="K2-SeqExprCast-484" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-485" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Try to cast '-inF(space)' to xs:decimal.</description>
      <query name="K2-SeqExprCast-485" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-486" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Try to cast 'naN' to xs:decimal.</description>
      <query name="K2-SeqExprCast-486" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-487" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Try to cast ' naN' to xs:decimal.</description>
      <query name="K2-SeqExprCast-487" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-488" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:QName to xs:language.</description>
      <query name="K2-SeqExprCast-488" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-489" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:base64Binary to xs:language.</description>
      <query name="K2-SeqExprCast-489" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-490" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:hexBinary to xs:language.</description>
      <query name="K2-SeqExprCast-490" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-491" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:gMonth to xs:language.</description>
      <query name="K2-SeqExprCast-491" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-492" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:gDay to xs:language.</description>
      <query name="K2-SeqExprCast-492" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-493" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:gMonthDay to xs:language.</description>
      <query name="K2-SeqExprCast-493" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-494" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:gYear to xs:language.</description>
      <query name="K2-SeqExprCast-494" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-495" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:integer to xs:language.</description>
      <query name="K2-SeqExprCast-495" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-496" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:decimal to xs:language.</description>
      <query name="K2-SeqExprCast-496" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-497" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:double to xs:language.</description>
      <query name="K2-SeqExprCast-497" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-498" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:float to xs:language.</description>
      <query name="K2-SeqExprCast-498" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-499" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:time to xs:language.</description>
      <query name="K2-SeqExprCast-499" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-500" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:date to xs:language.</description>
      <query name="K2-SeqExprCast-500" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-501" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:duration to xs:language.</description>
      <query name="K2-SeqExprCast-501" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-502" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:dayTimeDuration to xs:language.</description>
      <query name="K2-SeqExprCast-502" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-503" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast xs:yearMonthDuration to xs:language.</description>
      <query name="K2-SeqExprCast-503" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-504" FilePath="exprSeqTypes/SeqExprCast/" scenario="standard">
      <description>Use a series of corner case Unicode codepoints.</description>
      <query name="K2-SeqExprCast-504" date="2007-12-20+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-SeqExprCast-504.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-505" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>':/' is an invalid URI, no scheme.</description>
      <query name="K2-SeqExprCast-505" date="2008-01-15+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-506" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast invalid gMonth.</description>
      <query name="K2-SeqExprCast-506" date="2008-11-13+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-507" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast inF to xs:float.</description>
      <query name="K2-SeqExprCast-507" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-508" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast inF to xs:double.</description>
      <query name="K2-SeqExprCast-508" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-509" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast inF to xs:decimal.</description>
      <query name="K2-SeqExprCast-509" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-510" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast inf to xs:float.</description>
      <query name="K2-SeqExprCast-510" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-511" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast inf to xs:double.</description>
      <query name="K2-SeqExprCast-511" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-512" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast inf to xs:decimal.</description>
      <query name="K2-SeqExprCast-512" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-513" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast InF to xs:float.</description>
      <query name="K2-SeqExprCast-513" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-514" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast InF to xs:double.</description>
      <query name="K2-SeqExprCast-514" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-515" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast InF to xs:decimal.</description>
      <query name="K2-SeqExprCast-515" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-516" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast -InF to xs:float.</description>
      <query name="K2-SeqExprCast-516" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-517" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast -InF to xs:double.</description>
      <query name="K2-SeqExprCast-517" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-518" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast -InF to xs:decimal.</description>
      <query name="K2-SeqExprCast-518" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-519" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast +InF to xs:float.</description>
      <query name="K2-SeqExprCast-519" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-520" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast +InF to xs:double.</description>
      <query name="K2-SeqExprCast-520" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-521" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast +InF to xs:decimal.</description>
      <query name="K2-SeqExprCast-521" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-522" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast naN to xs:float.</description>
      <query name="K2-SeqExprCast-522" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-523" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast naN to xs:double.</description>
      <query name="K2-SeqExprCast-523" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-SeqExprCast-524" FilePath="exprSeqTypes/SeqExprCast/" scenario="runtime-error">
      <description>Cast naN to xs:decimal.</description>
      <query name="K2-SeqExprCast-524" date="2009-01-12+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>FORG0001</expected-error>
   </test-case>
</test-group>