[xslt] Potential bug with multiple sorts



I have found the following xml/xsl crashes.  If I remove the second
xsl:sort, it works fine.  This is using 0.9.0 on win32 platform.  This
worked fine on prior versions (0.8 I believe).  Can anyone else
confirm/deny?

<?xml version="1.0"?>
<RESULTS>
 <R>
   <A>Test</A>
   <B>A Test</B>
 </R>
 <R>
   <A>aTest</A>
   <B>aA Test</B>
 </R>
 <R>
   <A>bTest</A>
   <B>fA Test</B>
 </R>
 <R>
   <A>gTest</A>
   <B>eA Test</B>
 </R>
</RESULTS> 

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/">
 <xsl:for-each select="/RESULTS/R">
  <xsl:sort select="A"/><xsl:sort select="B"/>
  <xsl:value-of select="A"/>  <xsl:value-of select="B"/>
 </xsl:for-each>
</xsl:template>
</xsl:stylesheet>
 






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]