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

[Bug 28638] New: [QT3] innermost-020 permutation assertion does not include all allowed outcomes

From: <bugzilla@jessica.w3.org>
Date: Thu, 14 May 2015 15:22:58 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-28638-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28638

            Bug ID: 28638
           Summary: [QT3] innermost-020 permutation assertion does not
                    include all allowed outcomes
           Product: XPath / XQuery / XSLT
           Version: Recommendation
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: abel.braaksma@xs4all.nl
        QA Contact: public-qt-comments@w3.org

The test innermost020 tests the namespace nodes in position 17 to 20 with the
fn:innermost function.

Positions 17 to 19 are in the element <level>.
Position 20 is in the element <empty-level>.

Because the order of namespaces is undefined, it is unclear what set is
selected from the 4 namespace nodes in element <level> and which single
namespace node is selected from <empty-level>. 

Suggested fix: select 16 to 19 instead, or add other possible permutations.

I created a list of namespaces and their corresponding document positions for
ease of analysis (truncated), note positions 17 to 20:

<?xml version="1.0" encoding="UTF-8"?>
<root count="1">
   <namespace-in-scope pos="1" prefix="xmlns:level0"/>
   <namespace-in-scope pos="2" prefix="xmlns:xml"/>
   <empty-level-0 count="2">
      <namespace-in-scope pos="3" prefix="xmlns:xml"/>
      <namespace-in-scope pos="4" prefix="xmlns:level0"/>
   </empty-level-0>
   <non-empty-level-0 count="3">
      <namespace-in-scope pos="5" prefix="xmlns:xml"/>
      <namespace-in-scope pos="6" prefix="xmlns:level0"/>
   </non-empty-level-0>
   <level count="4">
      <namespace-in-scope pos="7" prefix="xmlns:level00"/>
      <namespace-in-scope pos="8" prefix="xmlns:xml"/>
      <namespace-in-scope pos="9" prefix="xmlns:level0"/>
      <empty-level-00 count="5">
         <namespace-in-scope pos="10" prefix="xmlns:xml"/>
         <namespace-in-scope pos="11" prefix="xmlns:level00"/>
         <namespace-in-scope pos="12" prefix="xmlns:level0"/>
      </empty-level-00>
      <non-empty-level-00 count="6">
         <namespace-in-scope pos="13" prefix="xmlns:xml"/>
         <namespace-in-scope pos="14" prefix="xmlns:level00"/>
         <namespace-in-scope pos="15" prefix="xmlns:level0"/>
      </non-empty-level-00>
      <level count="7">
         <namespace-in-scope pos="16" prefix="xmlns:level000"/>
         <namespace-in-scope pos="17" prefix="xmlns:xml"/>
         <namespace-in-scope pos="18" prefix="xmlns:level00"/>
         <namespace-in-scope pos="19" prefix="xmlns:level0"/>
         <empty-level-000 count="8">
            <namespace-in-scope pos="20" prefix="xmlns:xml"/>
            <namespace-in-scope pos="21" prefix="xmlns:level000"/>
            <namespace-in-scope pos="22" prefix="xmlns:level00"/>
            <namespace-in-scope pos="23" prefix="xmlns:level0"/>
         </empty-level-000>
         <non-empty-level-000 count="9">
            <namespace-in-scope pos="24" prefix="xmlns:xml"/>
            <namespace-in-scope pos="25" prefix="xmlns:level000"/>
            <namespace-in-scope pos="26" prefix="xmlns:level00"/>
            <namespace-in-scope pos="27" prefix="xmlns:level0"/>
         </non-empty-level-000>
      </level>
   </level>
   <.....truncated....>
</...>

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Thursday, 14 May 2015 15:22:59 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 14 May 2015 15:23:01 UTC