xsl-list
[Top] [All Lists]

Re: counting preceding siblings in with-param

2003-07-23 08:35:58
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