Dynamic XSLT sorting

MarCoch

New Member
My issue is very similar to this one:XSLT: use parameters in xls:sort attributes (dynamic sorting)But I'd like to sort it by node's attribute.How to change this command:\[code\]<xsl:sort select="*[name()=$sortBy]" order="{$order}"/>\[/code\]so that instead of name() function, there would be comparison to names of attributes?Or is there any other way to (dynamically according to given parameter) sort nodes by their attributes?
 
Back
Top