1

Topic: How to learn row number in xsl

Greetings, I deduce a line in a template, by default at saving in ml2003 summation of cells put down the explicit formula
<Cell ss:StyleID = "s74" ss:Formula = "= SUM (R [-2] C:R [-1] A C)"> </Cell>
How to change on R [-n] where n the last line?
I.e. how to make that the last line lined the total of all column how to learn an amount of already deduced lines.

2

Re: How to learn row number in xsl

<xsl:template match = "Cell"> \
<xsl:if test = "position () = count (.\Cell)">
...........
</xsl:if>
</xsl:template

3

Re: How to learn row number in xsl

Or is even easier

<xsl:template match = "Cell"> \
<xsl:if test = "position () = last ()">
...........
</xsl:if>
</xsl:template>

4

Re: How to learn row number in xsl

Thanks!