On Oct 23, 2008, at 08:58, <[EMAIL PROTECTED]>
<[EMAIL PROTECTED]> wrote:
Hi
I have transformed xml data into pdf output using xsl-fo. Now I
would like to have line number at the beginning of the each row.
What kind of logic I need to put? Any variable incremented
regularly i.e counter or there any some tags?
No variables needed, XSLT has built-in numbering facilities, which
will work nicely in your case.
see: http://www.w3.org/TR/xslt20/#number
In your stylesheet, in the 'cd' matching template, give the table an
extra, but narrow column at the start, and create an extra cell
containing only:
<fo:block><xsl:number /></fo:block>
HTH!
Cheers
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]