I have a situation where I have to perform a sort according to the contents of a variable.
In XSLT 2.0 I do:
<xsl:sort select="
if ($column = 'name') then name
else if ($column = 'score') then count(//scores/score[@id=current()/@id])
else if ($column = 'rating) then count(//ratings/rating[@id=current()/@id])
else name"
order={$sort}" />
But I need to do for version 1.0 and I can not find an alternative. How should I do?