Hi,
Sorry if this has been asked before - or is a daft question.
Is it possible to parameterise an <xsl:sort> ?
Example.
<root>
<data>
<firstname value="Fred"/>
<lastname value="Smith"/>
</data>
<data>
<firstname value="Tom"/>
<lastname value="Jones"/>
</data>
<data>
<firstname value="Myles"/>
<lastname value="Ward"/>
</data>
...
</root>
Sometimes I want to sort <data> on "firstname/@value" sometimes
on "lastname/@value" based on a user parameter of some kind.
Is this possible?
Best regards
Chris
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list