This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29810 - [xslt30ts] namespace-0301 - results are implementation-dependent
Summary: [xslt30ts] namespace-0301 - results are implementation-dependent
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 Test Suite (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Abel Braaksma
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-05 10:30 UTC by Michael Kay
Modified: 2016-10-19 19:06 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2016-09-05 10:30:10 UTC
I believe the results of test namespace-0301 depend on the ordering of attribute nodes, which is implementation-dependent.

We effectively do

<foo>
  <xsl:for-each select="@*">
    <xsl:attribute name="local-name()" select="."/>
  </xsl:for-each>
</foo>

The input element contains several attributes with the same local name, and the result will contain the value from the last of these in processing order, which is unpredictable.
Comment 1 Michael Kay 2016-10-19 19:06:38 UTC
Fixed by sorting the attributes by namespace URI (the expected result happens to be unchanged).