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]

Using xsl:sort select attribute


Hello,

I am trying to use the following code:

<!-- template : Sorts msg elm using selected order and key element -->
<xsl:template name="SortTemp">
<xsl:param name="sortColm"/>
<xsl:param name="sortOrder"/>
<xsl:apply-templates select="MSGLIST/MSG">
  <xsl:sort order="{$sortOrder}" select="$sortColm"/>
</xsl:apply-templates>
</xsl:template>

and I do not get any sorting to be done, have tried
  <xsl:sort order="{$sortOrder}" select="string($sortColm)"/>
but no good either.

In short I am trying to make the colm parametric.  Can I do it? If yes, how?

If I do the following:
  <xsl:sort order="{$sortOrder}" select="MSGID"/>
it works fine and sorts it accoring to the MSGID element.

Thanks,
Nuri
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.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]