[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] Sorting on different elements...

Subject: [xsl] Sorting on different elements...
From: "Chris Ward" <cward@xxxxxxxxxxxxxxxxxxx>
Date: Thu, 22 Jan 2004 09:36:23 -0000


Sorry if this has been asked before - or is a daft question.

Is it possible to parameterise an <xsl:sort> ?


			<firstname value="Fred"/>
			<lastname value="Smith"/>
			<firstname value="Tom"/>
			<lastname value="Jones"/>
			<firstname value="Myles"/>
			<lastname value="Ward"/>

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

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread