Chris,
At 05:36 PM 8/10/2010, you wrote:
If it helps, I'm using Apache FOP 0.95 and it may be a bug...
That it may. Setting up a reduced testing sample can help establish this.
Also, other FO engines have trial/testing versions you can use to
cross-check your FO.
Within the document, the page numbers are working correctly. Page
sequence to page sequence, the numbering is correct (pages 1-500) in
the outputted pdf.
I also know that the identifier is unique because when I do
<fo:page-sequence id="english"> and then reference it using
<fo:page-number-citation ref-id="english"> (from another
<fo:page-sequence>), it generates a page-number correctly. However,
if I instead insert an <fo:block id="english"> (or <fo:inline
id="english">) and remove the id from the <fo:page-sequence>,
<fo:page-number-citation ref-id="english"> no longer generates a
page number. I get an "WARNING: Unresolved id reference 'english' found."
I assume you have examined your FO code directly to confirm that
everything is right there.
The problem is referenced here, but I can't believe there's not a
work around: http://xmlgraphics.apache.org/fop/fo.html (scroll down
to "Total Document Pages")
Hm: this does suggest there's may be issue when you have more than
one page-sequence. Which there really shouldn't be. Have you tried
modifying to run everything into a single sequence? If that works,
you know something.
As for a workaround, I'm not sure what that would look like. The
functionality you want is, or ought to be, solidly within scope for
ordinary behavior. On the other hand, XSL formatting engines are not
trivial pieces of software, and to ask for it for free is asking a lot.
Cheers,
Wendell
======================================================================
Wendell Piez
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc. http://www.mulberrytech.com
17 West Jefferson Street Direct Phone: 301/315-9635
Suite 207 Phone: 301/315-9631
Rockville, MD 20850 Fax: 301/315-8285
----------------------------------------------------------------------
Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================
--~------------------------------------------------------------------
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>
--~--