Subject: Re: counting preceding siblings in with-param
From: John Sands <WonkoWatson@xxxxxxxxx>
Date: Wed, 23 Jul 2003 11:35:58 -0400
|
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
|