<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>68701</bug_id>
          
          <creation_ts>2011-09-23 09:18:50 -0700</creation_ts>
          <short_desc>XSLT is not working for more than 15 sorts</short_desc>
          <delta_ts>2022-07-28 13:45:14 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>XML</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=67310</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>NeedsReduction</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Thieu Pham">thieu.pham</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>jchaffraix</cc>
    
    <cc>jian.andy.zhang</cc>
    
    <cc>sourabh.editsoft</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>472274</commentid>
    <comment_count>0</comment_count>
    <who name="Thieu Pham">thieu.pham</who>
    <bug_when>2011-09-23 09:18:50 -0700</bug_when>
    <thetext>To reproduce this, please go to http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&amp;xsltfile=tryxsl_sort and edit the xsl by adding more &lt;xsl:sort&gt; on the right.

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

&lt;xsl:sort select=&quot;artist&quot;/&gt;
&lt;xsl:sort select=&quot;title&quot;/&gt;
&lt;xsl:sort select=&quot;country&quot;/&gt;
&lt;xsl:sort select=&quot;price&quot;/&gt;
&lt;xsl:sort select=&quot;year&quot;/&gt;
&lt;xsl:sort select=&quot;genre&quot;/&gt;
&lt;xsl:sort select=&quot;album&quot;/&gt;
&lt;xsl:sort select=&quot;category&quot;/&gt;
&lt;xsl:sort select=&quot;comments&quot;/&gt;
&lt;xsl:sort select=&quot;composer&quot;/&gt;
&lt;xsl:sort select=&quot;grouping&quot;/&gt;
&lt;xsl:sort select=&quot;dateAdded&quot;/&gt;
&lt;xsl:sort select=&quot;dateModified&quot;/&gt;
&lt;xsl:sort select=&quot;releaseDate&quot;/&gt;
&lt;xsl:sort select=&quot;bitRate&quot;/&gt;
&lt;xsl:sort select=&quot;sampleRate&quot;/&gt;

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

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>474392</commentid>
    <comment_count>1</comment_count>
    <who name="Julien Chaffraix">jchaffraix</who>
    <bug_when>2011-09-27 17:29:14 -0700</bug_when>
    <thetext>Confirmed on ToT. Qt does not have the issue so it is in our libXSLT implementation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611304</commentid>
    <comment_count>2</comment_count>
      <attachid>139146</attachid>
    <who name="Jian Zhang">jian.andy.zhang</who>
    <bug_when>2012-04-27 01:26:09 -0700</bug_when>
    <thetext>Created attachment 139146
test case reduction xml</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611305</commentid>
    <comment_count>3</comment_count>
      <attachid>139147</attachid>
    <who name="Jian Zhang">jian.andy.zhang</who>
    <bug_when>2012-04-27 01:26:48 -0700</bug_when>
    <thetext>Created attachment 139147
test case reduction xsl</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>611307</commentid>
    <comment_count>4</comment_count>
    <who name="Jian Zhang">jian.andy.zhang</who>
    <bug_when>2012-04-27 01:39:05 -0700</bug_when>
    <thetext>XSLT will work if removing one line &lt;xsl:sort select=&quot;item&quot;/&gt; in more-than-15-sorts.xsl</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>139146</attachid>
            <date>2012-04-27 01:26:09 -0700</date>
            <delta_ts>2012-04-27 01:26:09 -0700</delta_ts>
            <desc>test case reduction xml</desc>
            <filename>more-than-15-sorts.xml</filename>
            <type>text/xml</type>
            <size>128</size>
            <attacher name="Jian Zhang">jian.andy.zhang</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIj8+DQo8P3htbC1zdHlsZXNoZWV0IHR5cGU9InRleHQveHNsIiBo
cmVmPSJtb3JlLXRoYW4tMTUtc29ydHMueHNsIj8+DQo8bGlzdD4NCiAgICA8aXRlbT5pdGVtMTwv
aXRlbT4NCjwvbGlzdD4=
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>139147</attachid>
            <date>2012-04-27 01:26:48 -0700</date>
            <delta_ts>2012-04-27 01:26:48 -0700</delta_ts>
            <desc>test case reduction xsl</desc>
            <filename>more-than-15-sorts.xsl</filename>
            <type>text/xml</type>
            <size>893</size>
            <attacher name="Jian Zhang">jian.andy.zhang</attacher>
            
              <data encoding="base64">PD94bWwgdmVyc2lvbj0iMS4wIj8+DQo8eHNsOnN0eWxlc2hlZXQgdmVyc2lvbj0iMS4wIiB4bWxu
czp4c2w9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvWFNML1RyYW5zZm9ybSI+DQo8eHNsOnRlbXBs
YXRlIG1hdGNoPSIvIj4NCiAgPGh0bWw+DQogIDxib2R5Pg0KICAgIDx0YWJsZT4NCiAgICAgIDx4
c2w6Zm9yLWVhY2ggc2VsZWN0PSJsaXN0Ij4NCiAgICAgIDx4c2w6c29ydCBzZWxlY3Q9Iml0ZW0i
Lz4NCiAgICAgIDx4c2w6c29ydCBzZWxlY3Q9Iml0ZW0iLz4NCiAgICAgIDx4c2w6c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