<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22736</bug_id>
          
          <creation_ts>2013-07-19 12:56:59 +0000</creation_ts>
          <short_desc>[XQ3TS] typeswitch-in-xpath</short_desc>
          <delta_ts>2013-07-19 13:59:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Mills">tim</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90982</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-07-19 12:56:59 +0000</bug_when>
    <thetext>The test &quot;typeswitch-in-xpath&quot; appears in a test-set with dependency XQ10+, but the test itself can only be run in XP20+.

It&apos;s impossible to meet both these requirements simultaneously, and so I think the test can never be run.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90983</commentid>
    <comment_count>1</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-07-19 13:04:17 +0000</bug_when>
    <thetext>This test looks OK as it has the XP20+ dependency at the test case level.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90985</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-07-19 13:14:01 +0000</bug_when>
    <thetext>I&apos;m afraid I don&apos;t agree.  

We first test the condition at the test-set level, then the condition in the test-case.  The condition at the test-set level should always be as permissive as that in the test-case.

Since this is the ONLY case in which this occurs, I believe it to be a bug.  As soon as this is fixed, I&apos;ll be ready to submit results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90986</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2013-07-19 13:17:41 +0000</bug_when>
    <thetext>I think there may be some cases where the author of a test has assumed that a dependency at test-case level masks or overrides a dependency of the same type at test-set level. The way the documentation is written, this isn&apos;t the case: the dependencies should be cumulative. So I think Tim is right, if XQ10 is required at test-set level and XQ20 is required at test-case level, then the dependencies for this test case can never be satisfied.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90987</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-07-19 13:20:35 +0000</bug_when>
    <thetext>A quick fix would be to move this test out of prod/TypeswitchExpr.xml and into misc/CombinedErrorCodes.xml.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90988</commentid>
    <comment_count>5</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-07-19 13:21:39 +0000</bug_when>
    <thetext>Ok. I will move the test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90989</commentid>
    <comment_count>6</comment_count>
    <who name="O&apos;Neil Delpratt">oneil</who>
    <bug_when>2013-07-19 13:26:45 +0000</bug_when>
    <thetext>Bug fixed and committed to cvs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90990</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-07-19 13:47:15 +0000</bug_when>
    <thetext>Thanks.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90991</commentid>
    <comment_count>8</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2013-07-19 13:59:46 +0000</bug_when>
    <thetext>BTW, I&apos;ve just removed the original version from TypeswitchExpr.xml.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>