<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" name="TimeSubtractDTD" featureOwner="Frans Englich">
   <GroupInfo>
      <title>op:subtract-dayTimeDuration-from-time</title>
      <description/>
   </GroupInfo>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time2args-1" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator with the arguments set as follows: $arg1 = xs:time(lower bound) $arg2 = xs:dayTimeDuration(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time2args-1" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time2args-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time2args-2" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator with the arguments set as follows: $arg1 = xs:time(mid range) $arg2 = xs:dayTimeDuration(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time2args-2" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time2args-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time2args-3" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator with the arguments set as follows: $arg1 = xs:time(upper bound) $arg2 = xs:dayTimeDuration(lower bound).</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time2args-3" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time2args-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time2args-4" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator with the arguments set as follows: $arg1 = xs:time(lower bound) $arg2 = xs:dayTimeDuration(mid range).</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time2args-4" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time2args-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time2args-5" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator with the arguments set as follows: $arg1 = xs:time(lower bound) $arg2 = xs:dayTimeDuration(upper bound).</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time2args-5" date="2004-12-13"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time2args-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-1" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator as per example 1 (for this function) of the Functions and Operators spec.</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-1" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-2" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator as part of a boolean expression (and operator) and the "fn:false" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-2" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-2.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-3" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" opeartor as part of a boolean expression (or operator) and the "fn:false" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-3" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-3.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-4" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator used in conjunction with the "fn:not" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-4" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-4.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-5" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator as an argument to the "fn:boolean" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-5" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-5.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-6" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator as an argument to the "fn:number" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-6" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-6.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-7" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator as an argument to the "fn:string" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-7" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-7.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-8" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator that returns a negative value.</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-8" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-8.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-9" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator, which is part of an "and" expression.</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-9" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-9.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-10" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" operator as part of an "or" expression.</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-10" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-10.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-12" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" function used in conjunction with a boolean expression and the "fn:true" function.</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-12" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-12.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-13" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" function, which is part of a numeric-equal expression (eq operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-13" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-13.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-14" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" function, which is part of a numeric-equal expression (ne operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-14" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-14.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-15" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" function, which is part of a numeric-equal expression (le operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-15" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-15.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-16" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" function, which is part of a numeric-equal expression (ge operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-16" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-16.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" name="op-subtract-dayTimeDuration-from-time-17" FilePath="Expressions/Operators/ArithExpr/DurationArith/TimeSubtractDTD/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluates the "op:subtract-dayTimeDuration-from-time" function, which is part of a numeric-equal expression (ge operator).</description>
      <spec-citation spec="FuncOps" section-number="10.8.13" section-title="op:subtract-dayTimeDuration-from-time" section-pointer="func-subtract-dayTimeDuration-from-time"/>
      <query name="op-subtract-dayTimeDuration-from-time-17" date="2005-07-01"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">op-subtract-dayTimeDuration-from-time-17.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-TimeSubtractDTD-1" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/TimeSubtractDTD/" scenario="standard">
      <description>Simple testing involving operator '-' between xs:time and xs:dayTimeDuration.</description>
      <query name="K-TimeSubtractDTD-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-TimeSubtractDTD-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-TimeSubtractDTD-2" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/TimeSubtractDTD/" scenario="runtime-error">
      <description>The '+' operator is not available between xs:yearMonthDuration and xs:time.</description>
      <query name="K-TimeSubtractDTD-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-TimeSubtractDTD-3" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/TimeSubtractDTD/" scenario="runtime-error">
      <description>The '+' operator is not available between xs:time and xs:yearMonthDuration.</description>
      <query name="K-TimeSubtractDTD-3" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-TimeSubtractDTD-4" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/TimeSubtractDTD/" scenario="runtime-error">
      <description>The '-' operator is not available between xs:yearMonthDuration and xs:time.</description>
      <query name="K-TimeSubtractDTD-4" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
   <test-case is-XPath2="true" Creator="Frans Englich" name="K-TimeSubtractDTD-5" FilePath="Expressions/Operators/ArithExpr/DurationDateTimeArith/TimeSubtractDTD/" scenario="runtime-error">
      <description>The '-' operator is not available between xs:time and xs:yearMonthDuration.</description>
      <query name="K-TimeSubtractDTD-5" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPTY0004</expected-error>
   </test-case>
</test-group>