W3C home > Mailing lists > Public > www-xsl-fo@w3.org > March 2006

Re: how to assign fo:page-number to a xsl:variable or how can i refer a page

From: David Carlisle <davidc@nag.co.uk>
Date: Tue, 14 Mar 2006 11:01:10 GMT
Message-Id: <200603141101.k2EB1ACR018326@e3000.nag.co.uk>
To: jyotsna.ginjupalli@fmr.com
CC: www-xsl-fo@w3.org

The XSL transformation just generates the XSL FO document and at that
point the page numbers are not known (you might for instance print the
same FO file with different FO renderers and get different page
numbers).  So you can not access page numbers or other page-break
information from the transformation stage.

If you need to generate numbers that reset on every page break then
this may be possible if your FO engine offers some extensions that make
page break information available, or it may not be possible at all,
depending on the system you are using.

The above is assuming that your page breaks are being determined by the
FO renderer from one long block that is split across pages. If your
documents are of a type where you can determine the page breaks within
XSL (for example if it's a tabular format and you know how many lines
will fit on each page) then of course you can do the page breaking and
numbering all within XSLT, and generate a series explicit unbreakable
pages in the FO file so that all FO engines produce the same page breaks
and numbering.

Received on Tuesday, 14 March 2006 12:23:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:30 UTC