This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: passing a parameter to select attribute of <xsl:sort>


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]