On 3 Dec 2003 at 18:43,
bryan(_dot_)s(_dot_)schnabel(_at_)exgate(_dot_)tek(_dot_)com wrote:
Unless your actual XML gets more complicated, with nested <gap>s, and so
on, you can just change this:
<xsl:value-of select="position()"/>
to this:
<xsl:value-of select="count(preceding-sibling::gap) + 1"/>
Of course! I feel so stupid now, but I actually spent a lot of time
trying to figure this one out. I guess I became obsessed with the
idea of using an incrementing variable and blocked out all other
solutions. Thanks a lot for your very simple and elegant solution!
Erik
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list