I don't think it is a position() question, or at least, this isn't a
position() answer.
<xsl:value-of
select="/view/columns/count(column[(_at_)name=$sortby][1]/preceding-sibling::column)
+ 1"
/>
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list