<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" is-XPath2="false" name="sequenceExprTypeswitch" featureOwner="Frans Englich">
   <GroupInfo>
      <title>Typeswitch</title>
      <description/>
   </GroupInfo>
   <test-case is-XPath2="false" name="typeswitchhc1" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with operand expression using an atomic integer value.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc1" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc1.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc2" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with operand expression using an atomic decimal value.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc2" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc2.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc3" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with operand expression using an atomic double value.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc3" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc3.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc4" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with operand expression using an atomic string value.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc4" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc4.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc5" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with operand expression using an atomic float value.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc5" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc5.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc6" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with operand expression using an atomic boolean value.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc6" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc6.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc7" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with operand expression using a date value.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc7" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc7.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc8" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with operand expression using a time value.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc8" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc8.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc9" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with operand expression using a dateTime value.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc9" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc9.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc10" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression where the "default" should be evaluated.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc10" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc10.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc11" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression where a dynamic error from default clause should not be raised.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc11" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc11.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc12" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression where a dynamic error from default clause should not be raised.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc12" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc12.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc13" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression operand expression is an if expression that evaluates to integer type.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc13" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc13.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc14" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression operand expression is an "and expression" that evaluates to boolean type.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc14" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc14.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc15" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression operand expression is an "or expression" that evaluates to boolean type.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc15" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc15.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc16" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression operand expression is a "typeswitch expression" that evaluates to integer type.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc16" date="2005-02-14"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">typeswitchhc16.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc17" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with return clause containing an integer addition operation.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc17" date="2005-08-25"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">typeswitchhc17.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc18" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with return clause containing a decimal addition operation.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc18" date="2005-08-25"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">typeswitchhc18.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc19" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with return clause containing a double addition operation.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc19" date="2005-08-25"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">typeswitchhc19.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc20" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with return clause containing a string operation.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc20" date="2005-08-25"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">typeswitchhc20.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc21" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with return clause containing an fn:count function.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc21" date="2005-08-25"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">typeswitchhc21.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc22" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with return clause containing a subtraction operation.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc22" date="2005-08-25"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">typeswitchhc22.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc23" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with return clause containing a multiplication operation.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc23" date="2005-08-25"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">typeswitchhc23.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc24" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with return clause containing a division (div) operation.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc24" date="2005-08-25"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">typeswitchhc24.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="typeswitchhc25" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluating a typeswitch expression with return clause containing a division (idiv) operation.</description>
      <spec-citation spec="XQuery" section-number="3.12.2" section-title="Typeswitch" section-pointer="id-typeswitch"/>
      <query name="typeswitchhc25" date="2005-08-25"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">typeswitchhc25.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-sequenceExprTypeswitch-1" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>typeswitch test where the sequence types only differs in cardinality.</description>
      <query name="K-sequenceExprTypeswitch-1" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-sequenceExprTypeswitch-1.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-sequenceExprTypeswitch-2" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>A string literal is of type xs:string, even though it can be promoted to xs:anyURI.</description>
      <query name="K-sequenceExprTypeswitch-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-sequenceExprTypeswitch-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-sequenceExprTypeswitch-3" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>typeswitch test: A string literal is of type xs:string, even though it can be promoted to xs:untypedAtomic.</description>
      <query name="K-sequenceExprTypeswitch-3" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-sequenceExprTypeswitch-3.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-sequenceExprTypeswitch-4" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>A sequence of atomic items are not treated individually, but as a whole.</description>
      <query name="K-sequenceExprTypeswitch-4" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-sequenceExprTypeswitch-4.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-sequenceExprTypeswitch-5" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>A typeswitch scenario which in some implementations trigger certain optimization code paths.</description>
      <query name="K-sequenceExprTypeswitch-5" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-sequenceExprTypeswitch-5.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-sequenceExprTypeswitch-6" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>A typeswitch scenario involving empty-sequence(). Both the 'xs:integer*' branch and the 'empty-sequnec()' branch are valid.</description>
      <query name="K-sequenceExprTypeswitch-6" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-sequenceExprTypeswitch-6.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-sequenceExprTypeswitch-7" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>A typeswitch with an operand expression being the comma operator using no paranteses.</description>
      <query name="K-sequenceExprTypeswitch-7" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-sequenceExprTypeswitch-7.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-sequenceExprTypeswitch-8" FilePath="Expressions/exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>A typeswitch where the case clauses will never be evaluated. In some implementations this trigger optimization code paths.</description>
      <query name="K-sequenceExprTypeswitch-8" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-sequenceExprTypeswitch-8.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-1" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>Extract the EBV from the result of a typeswitch.</description>
      <query name="K2-sequenceExprTypeswitch-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-sequenceExprTypeswitch-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-sequenceExprTypeswitch-2" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="parse-error">
      <description>A default clause must be specified.</description>
      <query name="K2-sequenceExprTypeswitch-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="K2-sequenceExprTypeswitch-3" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="parse-error">
      <description>Parenteses must be specified for the expression that's switched.</description>
      <query name="K2-sequenceExprTypeswitch-3" 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 Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-4" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="runtime-error">
      <description>A variable is only in scope for the case branch it is declared for.</description>
      <query name="K2-sequenceExprTypeswitch-4" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0008</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-5" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="runtime-error">
      <description>A variable is only in scope for the case branch it is declared for(#2).</description>
      <query name="K2-sequenceExprTypeswitch-5" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0008</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-6" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="runtime-error">
      <description>A variable is only in scope for the case branch it is declared for(#3).</description>
      <query name="K2-sequenceExprTypeswitch-6" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0008</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-7" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="runtime-error">
      <description>A variable is only in scope for the case branch it is declared for(#3).</description>
      <query name="K2-sequenceExprTypeswitch-7" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0008</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K2-sequenceExprTypeswitch-8" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="parse-error">
      <description>A type declaration is not allowed in the default branch.</description>
      <query name="K2-sequenceExprTypeswitch-8" 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 Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-9" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="runtime-error">
      <description>Typeswitch variables are not in scope outside the typeswitch expression.</description>
      <query name="K2-sequenceExprTypeswitch-9" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0008</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-10" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="runtime-error">
      <description>Typeswitch variables are not in scope outside the typeswitch expression.</description>
      <query name="K2-sequenceExprTypeswitch-10" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0008</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-11" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="runtime-error">
      <description>A variable declared in the default branch doesn't carry over to a subsequent typeswitch.</description>
      <query name="K2-sequenceExprTypeswitch-11" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0008</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-12" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>Two nested typeswitches.</description>
      <query name="K2-sequenceExprTypeswitch-12" static-name="K2-sequenceExprTypeswitch-12-static-cbcl" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Fragment">K2-sequenceExprTypeswitch-12.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-13" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="runtime-error">
      <description>A complex query that constructs nodes in the wrong order.</description>
      <query name="K2-sequenceExprTypeswitch-13" static-name="K2-sequenceExprTypeswitch-13-static-cbcl" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XQTY0024</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-14" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>Use the focus from within a typeswitch's case-branch.</description>
      <query name="K2-sequenceExprTypeswitch-14" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">K2-sequenceExprTypeswitch-14.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-15" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>Use the focus from within a typeswitch's case-branch.</description>
      <query name="K2-sequenceExprTypeswitch-15" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">K2-sequenceExprTypeswitch-15.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-sequenceExprTypeswitch-16" FilePath="exprSeqTypes/sequenceExprTypeswitch/" scenario="standard">
      <description>Use variables with type declarations.</description>
      <query name="K2-sequenceExprTypeswitch-16" static-name="K2-sequenceExprTypeswitch-16-static-cbcl" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K2-sequenceExprTypeswitch-16.txt</output-file>
   </test-case>
</test-group>