[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: xsl:sort in old MSXML

Subject: RE: xsl:sort in old MSXML
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 30 Jun 2003 18:56:46 +0100
RE:  xsl:sort in old MSXML
> 
> 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?
> 

It's a long while since we've seen this, it used to come up twice a day.

WD-xsl is not XSLT. You can't get a C compiler to process Java, and you
can't get a WD-xsl processor to process XSLT. They are different
languages. If you want to write XSLT, you will need an XSLT processor.

Michael Kay


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.