Pierre-Luc Bertrand wrote:
Thanks for that answer but unfortunately, I can't get it to work. I
don't know if it is due to the fact that I'm using Internet Explorer to
see the transform but I'm getting this error:
'Reference to variable or parameter 'k1' must evaluate to a node list.'
<xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:xs="http://www.w3.org/2001/XMLSchema"
                exclude-result-prefixes="xs">
  
  <xsl:variable name="k1" as="xs:string+">
    <xsl:perform-sort select="x/titles/key">
      <xsl:sort select="."/>
    </xsl:perform-sort>
  </xsl:variable>
The stylesheet uses XSLT 2.0 so running it with IE which only supports 
XSLT 1.0 does not work.
--
        Martin Honnen
        http://JavaScript.FAQTs.com/
--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--