This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
sort parameter problem
- To: XSL-List at lists dot mulberrytech dot com
- Subject: [xsl] sort parameter problem
- From: Guillaume Rousse <rousse at ccr dot jussieu dot fr>
- Date: Mon, 24 Sep 2001 17:21:55 +0200
- Organization: =?iso8859-1?q?Universit=E9=20Pierre=20&=20Marie?= Curie
- Reply-To: xsl-list at lists dot mulberrytech dot com
The following construct hasn't any sort effect when called with sort=bar
parameter:
<xsl:template name="list-foos">
<xsl:param name="sort"/>
<xsl:for-each select="foos/foo">
<xsl:sort select="$sort"/>
[..]
</xsl:for-each>
</xsl:template>
However, hardcoding sort value is OK:
<xsl:template name="list-foos">
<xsl:param name="sort"/>
<xsl:for-each select="foos/foo">
<xsl:sort select="bar"/>
[..]
</xsl:for-each>
</xsl:template>
The XSL spec says:
xsl:sort has a select attribute whose value is an expression.
So, am i doing something wrong there, or should i report a bug in xalan-j
2.2.D10 ?
--
Guillaume Rousse <rousse@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list