|
Subject: Re: [xsl] xsl:param error From: David Carlisle <davidc@xxxxxxxxx> Date: Thu, 15 Nov 2001 17:24:38 GMT |
<xsl:value-of disable-output-escaping="yes" select="count(bannerlist/banner)" />
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
it's almost always a mistake to use disable-output-escaping unless you
really know you need it (as it is non-portable and a hack) here you
certainly do not need it as count() only ever produces digits and
disable-output-escaping does not affect digits it only affects the way <
and & appear.
<xsl:for-each select="bannerlist/banner">
<xsl:param name="count" expr="count+1"></xsl:param>
<xsl:param can only appear as the first child of xsl:template
or xsl:stylesheet. Also it does not have an expr attribute.
It looks from the expr attribute that you are trying to add one to the
value of a counter, but recall that you can not change the value of a
parameter once it is bound.
David
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] xsl:param error, Vaibhava | Thread | Re: [xsl] xsl:param error, Annalisa Ricci |
| RE: [xsl] IF statement with AND exp, Michael Kay | Date | Re: [xsl] xsl:param error, Annalisa Ricci |
| Month |