<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" is-XPath2="false" name="ExternalVariablesWithout" featureOwner="NIST and Frans Englich">
   <GroupInfo>
      <title>External Variable References without TypeDeclaration</title>
      <description/>
   </GroupInfo>
   <test-case is-XPath2="false" name="extvardeclwithouttype-1" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type definition. Eventually used as a string.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-1" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-1" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-1.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-2" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type definition. Eventually used as xs:date.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-2" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-2" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-2.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-3" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type definition. Eventually used as xs:integer.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-3" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-3" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-3.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-4" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type definition. Eventually used as xs:double.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-4" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-4" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-4.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-5" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type definition. Eventually used as xs:boolean.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-5" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-5" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-5.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-6" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type definition. Eventually used as xs:float.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-6" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-6" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-6.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-7" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type definition. Eventually used as xs:decimal.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-7" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-7" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-7.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-8" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to evaluate addition operation involving 2 values (both queries perform operation).</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-8" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-8" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-8.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-9" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to evaluate addition expression involving 2 values (only input query performs operation).</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-9" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-9" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-9.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-10" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to evaluate addition expression involving 2 values (only the main query performs operation).</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-10" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-10" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-10.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-11" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to evaluate multiplication operation involving 2 values (both queries performs operation).</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-11" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-11" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-11.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-12" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to evaluate multiplication operation involving 2 values (both queries performs operation).</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-12" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-12" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-12.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-13" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to evaluate division operation (idiv operator) involving 2 values (both queries performs operation).</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-13" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-13" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-13.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-14" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to evaluate division operation (div operator) involving 2 values (both queries performs operation).</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-14" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-14" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-14.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-15" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to evaluate mod operation involving 2 values (both queries performs operation).</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-15" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-15" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-15.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-16" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to evaluate a boolen expression for "and" operator (both queries performs operation).</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-16" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-16" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-16.txt</output-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-17" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to evaluate a boolean expression for "or" operator (both queries performs operation).</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-17" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-17" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-17.txt</output-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-18" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to evaluate results of avg function.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-18" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-18" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-18.txt</output-file>
      <output-file role="principal" compare="Text">extvardeclwithouttypealt-18.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-19" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="runtime-error" Creator="Carmelo Montanez">
      <description>External Variable without used to cast results of avg function and results in cast error.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-19" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-19" date="2006-02-10"/>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-20" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to reverse the case (to upper) of results given to the variable.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-20" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-20" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-20.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-21" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without type used to reverse the case (to lower) of results given to the variable.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-21" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-21" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-21.txt</output-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-22" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard" Creator="Carmelo Montanez">
      <description>External Variable without casted successfully to be used with fn:not function.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-22" date="2006-02-10"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <input-query variable="x" name="extvardeclwithouttypetobind-22" date="2006-02-10"/>
      <output-file role="principal" compare="Text">extvardeclwithouttype-22.txt</output-file>
      <expected-error>FORG0006</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="extvardeclwithouttype-23" FilePath="Expressions/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="runtime-error" Creator="Carmelo Montanez">
      <description>Evaluates usage of external variable, that is never assigned a value.</description>
      <spec-citation spec="XQuery" section-number="4.14" section-title="Variable Declaration" section-pointer="id-variable-declarations"/>
      <query name="extvardeclwithouttype-23" date="2006-09-25"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPDY0002</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-1" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="runtime-error">
      <description>Two external variables with the same name.</description>
      <query name="K2-ExternalVariablesWithout-1" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XQST0049</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-2" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="runtime-error">
      <description>Two external variables with the same name and where the variable is used.</description>
      <query name="K2-ExternalVariablesWithout-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XQST0049</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-3" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="runtime-error">
      <description>An external variable using an undeclared prefix.</description>
      <query name="K2-ExternalVariablesWithout-3" 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 Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-4" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="runtime-error">
      <description>If the value for an external variable can't be supplied, XPDY0002 must be raised.</description>
      <query name="K2-ExternalVariablesWithout-4" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPDY0002</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-5" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="runtime-error">
      <description>If the value for an external variable can't be supplied, XPDY0002 must be raised(#2).</description>
      <query name="K2-ExternalVariablesWithout-5" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPDY0002</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-6" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard">
      <description>An implementation may raise XPDY0002 on a declared external variable, although not necessary since it isn't used.</description>
      <query name="K2-ExternalVariablesWithout-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-ExternalVariablesWithout-6.txt</output-file>
      <expected-error>XPDY0002</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-7" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard">
      <description>An implementation may raise XPDY0002 on a declared external variable, although not necessary since it isn't used(#2).</description>
      <query name="K2-ExternalVariablesWithout-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-ExternalVariablesWithout-7.txt</output-file>
      <expected-error>XPDY0002</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-8" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard">
      <description>It is ok to have space between '$' and the name in variable names.</description>
      <query name="K2-ExternalVariablesWithout-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-ExternalVariablesWithout-8.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-9" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard">
      <description>Ensure a variable declaration doesn't violate stability rules.</description>
      <query name="K2-ExternalVariablesWithout-9" static-name="K2-ExternalVariablesWithout-9-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-ExternalVariablesWithout-9.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-10" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard">
      <description>Ensure node identity is handled through several variables.</description>
      <query name="K2-ExternalVariablesWithout-10" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">K2-ExternalVariablesWithout-10.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-11" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard">
      <description>Description ensure node identity is handled through variables that has cardinality zero or more.</description>
      <query name="K2-ExternalVariablesWithout-11" static-name="K2-ExternalVariablesWithout-11-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-ExternalVariablesWithout-11.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-12" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard">
      <description>Reference a variable from two different node constructors.</description>
      <query name="K2-ExternalVariablesWithout-12" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="XML">K2-ExternalVariablesWithout-12.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-13" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard">
      <description>Evaluate the boolean value of a variable.</description>
      <query name="K2-ExternalVariablesWithout-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-ExternalVariablesWithout-13.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-14" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="parse-error">
      <description>Double colon in assignment is syntactically invalid.</description>
      <query name="K2-ExternalVariablesWithout-14" 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-ExternalVariablesWithout-15" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="parse-error">
      <description>Space in assignment is syntactically invalid.</description>
      <query name="K2-ExternalVariablesWithout-15" 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-ExternalVariablesWithout-16" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="runtime-error">
      <description>Ensure that a start looking like a declaration, isn't treated as so.</description>
      <query name="K2-ExternalVariablesWithout-16" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPDY0002</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-17" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="runtime-error">
      <description>Ensure the 'variable' keyword is parsed correctly.</description>
      <query name="K2-ExternalVariablesWithout-17" date="2008-01-03+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPDY0002</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-18" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard">
      <description>XQuery 1.0 doesn't allow externals to have a default value.</description>
      <query name="K2-ExternalVariablesWithout-18" date="2008-11-13+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file spec-version="1.1" role="principal" compare="Text">K2-ExternalVariablesWithout-18.txt</output-file>
      <expected-error spec-version="1.0">XPST0003</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-19" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="runtime-error">
      <description>Ensure XPDY0002 is raised for global variables if there's no focus defined.</description>
      <query name="K2-ExternalVariablesWithout-19" date="2008-11-18+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPDY0002</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-20" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="runtime-error">
      <description>Ensure XPDY0002 is raised for global variables if there's no focus defined. Reference the variable twice.</description>
      <query name="K2-ExternalVariablesWithout-20" date="2008-11-18+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPDY0002</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-21" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard">
      <description>Use the global focus in various ways.</description>
      <query name="K2-ExternalVariablesWithout-21" date="2008-11-18+01:00"/>
      <contextItem role="principal-data">works-mod</contextItem>
      <output-file role="principal" compare="Text">K2-ExternalVariablesWithout-21.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K2-ExternalVariablesWithout-22" FilePath="exprSeqTypes/PrologExpr/VariableProlog/ExternalVariablesWithout/" scenario="standard">
      <description>Use the global focus in various ways three references.</description>
      <query name="K2-ExternalVariablesWithout-22" date="2008-11-18+01:00"/>
      <contextItem role="principal-data">works-mod</contextItem>
      <output-file role="principal" compare="Text">K2-ExternalVariablesWithout-22.txt</output-file>
   </test-case>
</test-group>