xsl-list
[Top] [All Lists]

xsl:sort in old MSXML

2003-06-30 08:58:14
Hello everyone

I'm trying to use the XML support in the MSXML version distributed with IE5.0 
(which MSXML version is it by the way, I'm guessing 2.0 or 2.5). 

So, I'm trying to use xsl:sort but the script engine tells me that I cannot use 
the keyword xsl:sort where I use it.

Tried the following approaches:
<xsl:apply-templates select="//question">
  <xsl:sort select="@id" order="ascending" data-type="number"/>
</xsl:apply-templates>

and
<xsl:for-each select="//question">
    <xsl:sort select="@id" order="ascending" data-type="number"/>
</xsl:for-each>

None of these seems to work.
Exact error message is: Keyword xsl:sort may not be used here.

The same things happens when I try to use xsl:param and xsl:variable as well.

BTW, the namespace declaration in my stylesheet is:
xmlns:xsl="http://www.w3.org/TR/WD-xsl";

Does anyone have any idea what to do?

cheers

/Marcus

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



<Prev in Thread] Current Thread [Next in Thread>