<?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>28335</bug_id>
          
          <creation_ts>2015-03-25 18:05:15 +0000</creation_ts>
          <short_desc>[XT30] test match-82a has wrong XSLT version and assumes different priority for parenthesized patterns</short_desc>
          <delta_ts>2015-05-06 21:19:02 +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>XSLT 3.0 Test Suite</component>
          <version>Last Call drafts</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="Abel Braaksma">abel.braaksma</reporter>
          <assigned_to name="Abel Braaksma">abel.online</assigned_to>
          <cc>mike</cc>
          
          <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>118937</commentid>
    <comment_count>0</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-03-25 18:05:15 +0000</bug_when>
    <thetext>According to the spec, parentheses are removed prior to assessing for default priority (internal current draft), this test assumes that the priority is different.

Also, the test is written for 3.0, but the stylesheet has version 2.0.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118940</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-03-25 19:19:56 +0000</bug_when>
    <thetext>I think the test match-082 was originally written for XSLT 2.0, and was then forked because a 3.0 processor gives a different result. It&apos;s perfectly legal to run a stylesheet with version=&quot;2.0&quot; with a 3.0 processor, and the results are well-defined.

You&apos;re right that at some point the rules changed so that match=&quot;(doc|cod)&quot; is now treated as a UnionPattern for priority purposes, which means the second template rule should be chosen in preference. I propose we simply change the expected results.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118943</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-03-25 22:14:15 +0000</bug_when>
    <thetext>Fixed the second problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118954</commentid>
    <comment_count>3</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-03-26 12:16:57 +0000</bug_when>
    <thetext>We were both fixing the same test, but differently, I have merged the changes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>118955</commentid>
    <comment_count>4</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-03-26 12:44:18 +0000</bug_when>
    <thetext>&gt; It&apos;s perfectly legal to run a stylesheet with version=&quot;2.0&quot; with a 3.0 
&gt; processor, and the results are well-defined.

Yes, but if it tests backwards-compatibility, it should probably be placed in a different category. I split the test-case in three variants to cover the same-priority situation more clearly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>120184</commentid>
    <comment_count>5</comment_count>
    <who name="Abel Braaksma">abel.braaksma</who>
    <bug_when>2015-05-06 21:19:02 +0000</bug_when>
    <thetext>Was resolved &gt; 30 days ago, closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>