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

RE: xsl:param error

Subject: RE: xsl:param error
From: Vaibhava <vaibhava@xxxxxxxxxxx>
Date: 15 Nov 2001 09:31:55 -0800
muchhal vaibhava
But you can not update an xsl:variable expression, right? Once it's set, then that's what it is, how would you increment it?

-----Original Message-----
From: Annalisa Ricci [mailto:Annalisa.Ricci@xxxxxxxx]
Sent: Thursday, November 15, 2001 12:25 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  xsl:param error

Try using <xsl:variable> instead of<xsl:param>
----- Original Message -----
From: "Vaibhava" <vaibhava@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Thursday, November 15, 2001 5:46 PM
Subject:  xsl:param error

> I am attempting to set a counter using the XSL:param method.
> The following is my XSL code :-
> <?xml version='1.0'?>
> <!--<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">-->;
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> <xsl:template match="/banners">
> <xsl:param name="count">0</xsl:param>
> <xsl:value-of disable-output-escaping="yes"
select="count(bannerlist/banner)" />
> <HTML>
> <BODY>
> <xsl:for-each select="bannerlist/banner">
>     <xsl:param name="count" expr="count+1"></xsl:param>
>     <TR>
>     <TD>
> <xsl:value-of disable-output-escaping="yes" select="IMAGE" />
>     </TD><TD>   </TD><TD>
> <xsl:value-of disable-output-escaping="yes" select="HREF" />
>     </TD><TD>   </TD><TD>
> <xsl:value-of disable-output-escaping="yes" select="$count" />
>     </TD>
>     </TR>
> </xsl:for-each>
> </TABLE>
> </BODY>
> </HTML>
> </xsl:template>
> </xsl:stylesheet>
> I get the following error when the code processes :-
> "Description: Keyword xsl:param may not be used here."
> Please help as to why this may be happening...
> Thanks
> -Vaibhava Muchhal
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

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

Vaibhava Muchhal

Get your free domain name and domain-based
e-mail from Namezero.com
New! Namezero Plus domains now available.
Find out more at: http://www.namezero.com

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

Current Thread


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.
First Name
Last Name
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.