First, I can't reproduce you're problem[1], so I won't try tackling
an answer. But more importantly, I think you may be barking up the
wrong tree. You probably want to look at <xsl:number>. Carefully.
Note
----
[1] I tried your sample template (w/o the extraneous "match") on the
data you sent using an XSLT 1.0 processor and got
ancestors="4"
preceding="3"
contender="0"
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--