This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: passing a parameter to select attribute of <xsl:sort>
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: passing a parameter to select attribute of <xsl:sort>
- From: "Ryan Daigle" <rwdaigle at yahoo dot com>
- Date: Wed, 21 Jun 2000 20:45:46 -0400
- Reply-To: xsl-list at mulberrytech dot com
This is, in fact, just the hack I was looking for. Jeni Tennison also
proposed a similar method:
<xsl:apply-templates select="./listItem">
<xsl:sort order="{$order}" select="./person/*[name() =
$orderingElement]"/>
</xsl:apply-templates>
>Well, you could try the old hack:
>
> <xsl:apply-templates select="./listItem">
> <xsl:sort order="{$order}" select="*[local-name()=$orderingElement]"/>
> </xsl:apply-templates>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list