W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2017

[Bug 30110] New: Test-cases match-06[3|4] make wrong assumptions about pattern priority

From: <bugzilla@jessica.w3.org>
Date: Fri, 12 May 2017 15:37:17 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-30110-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=30110

            Bug ID: 30110
           Summary: Test-cases match-06[3|4] make wrong assumptions about
                    pattern priority
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSLT 3.0 Test Suite
          Assignee: abel.online@xs4all.nl
          Reporter: john@saxonica.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

In the test cases match-063 and match-064, both contain (the same) two
templates with match patterns: 

<xsl:template match="foo except /*/*">
<xsl:template match="foo">...

The tests are written on the assumption that the first pattern has a higher
default priority than the second, presumably anticipating the 'catchall' of
+0.5. 

However https://www.w3.org/TR/xslt-30/#default-priority states:

  "If the top-level pattern is an IntersectExceptExprP containing two or more
PathExprP operands separated by intersect or except operators, then the
priority of the pattern is that of the first PathExprP."

so the first pattern should have the same priority as the second, and the
'select the last matching' behaviour will not produce the desired results.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 12 May 2017 15:37:24 UTC

This archive was generated by hypermail 2.3.1 : Friday, 12 May 2017 15:37:25 UTC