Bug 68701 - XSLT is not working for more than 15 sorts
Summary: XSLT is not working for more than 15 sorts
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: XML (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: NeedsReduction
Depends on:
Blocks:
 
Reported: 2011-09-23 09:18 PDT by Thieu Pham
Modified: 2022-07-28 13:45 PDT (History)
4 users (show)

See Also:


Attachments
test case reduction xml (128 bytes, text/xml)
2012-04-27 01:26 PDT, Jian Zhang
no flags Details
test case reduction xsl (893 bytes, text/xml)
2012-04-27 01:26 PDT, Jian Zhang
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thieu Pham 2011-09-23 09:18:50 PDT
To reproduce this, please go to http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=tryxsl_sort and edit the xsl by adding more <xsl:sort> on the right.

It stops working when you have at least 16 sorts.  Try the following list:

<xsl:sort select="artist"/>
<xsl:sort select="title"/>
<xsl:sort select="country"/>
<xsl:sort select="price"/>
<xsl:sort select="year"/>
<xsl:sort select="genre"/>
<xsl:sort select="album"/>
<xsl:sort select="category"/>
<xsl:sort select="comments"/>
<xsl:sort select="composer"/>
<xsl:sort select="grouping"/>
<xsl:sort select="dateAdded"/>
<xsl:sort select="dateModified"/>
<xsl:sort select="releaseDate"/>
<xsl:sort select="bitRate"/>
<xsl:sort select="sampleRate"/>

Please note that this works in Firefox and Internet Explorer which do not use WebKit.

Thanks!
Comment 1 Julien Chaffraix 2011-09-27 17:29:14 PDT
Confirmed on ToT. Qt does not have the issue so it is in our libXSLT implementation.
Comment 2 Jian Zhang 2012-04-27 01:26:09 PDT
Created attachment 139146 [details]
test case reduction xml
Comment 3 Jian Zhang 2012-04-27 01:26:48 PDT
Created attachment 139147 [details]
test case reduction xsl
Comment 4 Jian Zhang 2012-04-27 01:39:05 PDT
XSLT will work if removing one line <xsl:sort select="item"/> in more-than-15-sorts.xsl