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

RE: can't use xsl:variable or xsl:sort

Subject: RE: can't use xsl:variable or xsl:sort
From: "Scott McDermott" <smcdermott@xxxxxxxxxxxxx>
Date: Tue, 3 Oct 2000 10:50:00 -0400
xls sort
If I'm not mistaken, your xsl namespace
(xmlns:xsl="http://www.w3.org/TR/WD-xsl") indicates that you're using
version 2.0 of MSXML, which doesn't support either xsl:variable or xsl:sort
(though it does support xsl:order-by, which is similar to xls:sort).  If you
can, upgrade to version 3.0 of MSXML--I think this is still in Beta, but it
does adhere to the XSL standards more closely, supporting xsl:variable and
xsl:sort.

Regards,
Scott

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxx]On Behalf Of Lewis
Sent: Tuesday, October 03, 2000 9:36 AM
To: XSL-List@xxxxxxxxxxxxxxxx
Subject: can't use xsl:variable or xsl:sort


I'm using IE5.5.  I'm trying to run this xsl:

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl" version="1.0">
<xsl:template match="/">

  <xsl:for-each select="ndsOptionsMenu">
    <xsl:for-each select="option">
      <xsl:variable name="thisVal" select="text"/>
    </xsl:for-each>
  </xsl:for-each>
</xsl:template>
</xsl:stylesheet>

This isn't all I want to do but it shows my problem.  When I run this I
get:

Keyword xsl:variable may not be used here.

The same thing happens with xsl:sort.  Does anyone know why this is?

Thanks.

 Oh, just in case here is my XML:

<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="ndsoptionsmenutest.xsl"?>
<ndsOptionsMenu>
  <title>XML/XSL Demo (Options)</title>
  <option>
    <text>Use Customer?</text>
    <value>Y</value>
  </option>
  <option>
    <text>Use Sales Rep?</text>
    <value>Y</value>
  </option>
</ndsOptionsMenu>


--
Lewis Cunningham
NDS Systems
Tel : 727-538-2250
Mail: lewis@xxxxxxxxxxx
Web : www.ndsapps.com



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


 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.