<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" is-XPath2="false" name="LetExprWith" featureOwner="Frans Englich">
   <GroupInfo>
      <title>LET Clause with TypeDeclaration</title>
      <description>Tests for the LET part of the FLWOR expression syntax</description>
   </GroupInfo>
   <test-case is-XPath2="false" name="letexprwith-1" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="runtime-error" Creator="Carmelo Montanez">
      <description>Variable bound with let clause and used in expression that raises type error.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-1" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-2" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with decimal type.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-2" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-3" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with integer type.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-3" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-4" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with decimal type.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-4" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-5" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with string type.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-5" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-6" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with boolean (true) type.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-6" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-7" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with boolean (false) type.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-7" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-7.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-8" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with date type.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-8" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-8.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-9" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with time type.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-9" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-9.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-10" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with dateTime type.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-10" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-10.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-11" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with dateTime type.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-11" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-11.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-12" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with an integer expression.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-12" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-12.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-13" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with fn:count function.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-13" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-13.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-14" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with fn:not function.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-14" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-14.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-15" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with "and" operator.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-15" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-16" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with "or" operator.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-16" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-16.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-17" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with "fn:string-length" function.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-17" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-17.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-18" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with casting from integer to string.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-18" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-18.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-19" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with casting from decimal to string.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-19" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-19.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-20" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with casting from double to string.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-20" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-20.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-21" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with casting from boolean to string.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-21" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-21.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-22" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with integer type and addition expression on return clause.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-22" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-22.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-23" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with an "if" expression.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-23" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-23.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="letexprwith-24" FilePath="Expressions/FLWORExpr/LetExprWith/" scenario="standard" Creator="Carmelo Montanez">
      <description>Let clause used with an "if" expression.</description>
      <spec-citation spec="XQuery" section-number="3.8.1" section-title="For and Let Clauses" section-pointer="id-for-let"/>
      <query name="letexprwith-24" date="2005-11-16"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">letexprwith-24.txt</output-file>
   </test-case>
</test-group>