[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: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 15 Nov 2001 17:24:38 GMT
param.error
<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
  • xsl:param error
    • Vaibhava - Thu, 15 Nov 2001 11:46:21 -0500 (EST)
      • Michael Kay - Thu, 15 Nov 2001 12:20:10 -0500 (EST)
      • Annalisa Ricci - Thu, 15 Nov 2001 12:24:34 -0500 (EST)
      • David Carlisle - Thu, 15 Nov 2001 12:25:00 -0500 (EST) <=
      • <Possible follow-ups>
      • Vaibhava - Thu, 15 Nov 2001 12:32:10 -0500 (EST)
      • Jeff Beadle - Thu, 15 Nov 2001 12:36:27 -0500 (EST)
      • Vaibhava - Thu, 15 Nov 2001 13:06:29 -0500 (EST)

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.