Subject: [xsl] Is this a sorting bug in xalan 6.4.0? From: Stan Dyck <sgd@xxxxxxxxxxxx> Date: Thu, 6 Feb 2003 09:01:13 -0800 |
<NameList> <Record><Name>A</Name></Record> <Record><Name>AAL</Name></Record> <Record><Name>Amanda</Name></Record> <Record><Name>Amy</Name></Record> <Record><Name>A Maureen</Name></Record> </NameList>
<xsl:variable name="lower" select="'abcdefghijklmnopqrstuvwxyz'"/> <xsl:variable name="upper" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
<xsl:template match="NameList"> <xsl:comment><xsl:value-of select="system-property('xsl:vendor')"/> </xsl:comment> <table> <xsl:apply-templates select="Record"> <xsl:sort select="translate(Name, $lower, $upper)"/> </xsl:apply-templates> </table> </xsl:template>
<xsl:template match="Record"> <tr><td><xsl:value-of select="Name"/></td></tr> </xsl:template> </xsl:stylesheet>
<!--Apache Software Foundation--><table> <tr> <td>A</td> </tr> <tr> <td>AAL</td> </tr> <tr> <td>Amanda</td> </tr> <tr> <td>A Maureen</td> </tr> <tr> <td>Amy</td> </tr> </table>
<!--SAXON 6.4.1 from Michael Kay--><table> <tr> <td>A</td> </tr> <tr> <td>A Maureen</td> </tr> <tr> <td>AAL</td> </tr> <tr> <td>Amanda</td> </tr> <tr> <td>Amy</td> </tr> </table>
Stan Dyck sgd@xxxxxxxxxxxx
<xsl:variable name="lower" select="' abcdefghijklmnopqrstuvwxyz'"/> <xsl:variable name="upper" select="'_ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Adding newline changes ou, XSLList | Thread | RE: [xsl] Is this a sorting bug in , Michael Kay |
Re: [xsl] Adding newline changes ou, Albert Chin | Date | RE: [xsl] Using Dublin Core as meta, G. Ken Holman |
Month |