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

Re: counting preceding siblings in with-param

Subject: Re: counting preceding siblings in with-param
From: John Sands <WonkoWatson@xxxxxxxxx>
Date: Wed, 23 Jul 2003 11:35:58 -0400
john sands
Thanks for the response.

> It's unspecified whether a system evauates a parammeter (or
> variable) each time it is used, or just evaluates it once, and
> stores teh result, but either way it is specified that you'll get
> the same result every time.

So I'm expecting with-param to do something it's not designed to do?
Calculate a new value for each node?

  <xsl:apply-templates select="section | comment | instructions">
    <xsl:with-param name="section-number" select="???" />
  </xsl:apply-templates>

The expression in ??? is not designed to give a different value
depending on the current node?



 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.