You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by KS...@iflexsolutions.com on 2008/10/23 08:58:32 UTC
Want a line number at the beginning of each row
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?
Help me in this regard.
Bhaskar K S | Associate Consultant | +91 80 66452218 (O)
Oracle Financial Services Consulting
Bangalore, India
Oracle Financial Services Software Limited was formerly i-flex solutions
limited.
DISCLAIMER:
This message contains privileged and confidential information and is intended only for an individual named. If you are not the intended recipient, you should not disseminate, distribute, store, print, copy or deliver this message. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete or contain viruses. The sender, therefore, does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission. If verification is required, please request a hard-copy version.
Re: Want a line number at the beginning of each row
Posted by Andreas Delmelle <an...@telenet.be>.
On Oct 23, 2008, at 08:58, <KS...@iflexsolutions.com>
<KS...@iflexsolutions.com> 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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org