[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Index with multiple <page-sequence>'s

Subject: RE: Index with multiple <page-sequence>'s
From: "Goettel, Christopher D" <christopher-goettel@xxxxxxxxx>
Date: Tue, 10 Aug 2010 16:36:56 -0500
RE:  Index with multiple <page-sequence>'s
If it helps, I'm using Apache FOP 0.95 and it may be a bug...

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."

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")

-Chris
________________________________________
From: Wendell Piez [wapiez@xxxxxxxxxxxxxxxx]
Sent: Tuesday, August 10, 2010 2:51 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  Index with multiple <page-sequence>'s

Chris,

At 03:39 PM 8/10/2010, you wrote:
>I'm putting together a 500 page academic catalog where each of the
>60 departments has it's own title page and subsequent content.  The
>title page is styled differently then the remaining pages, so each
>department itself is a <page-sequence> so that I can style the
>"first" page of each department accordingly.  Multiple
><page-sequence>'s makes sense in this context and it's worked smoothly.
>
>I then have to generate an index at the end of the catalog that
>references specific id's in the text of the department
><page-sequences>'s.  However, if I have <fo:block id="english"> in
>the English Department's content, it seems I can't then reference it
>by doing <fo:page-number-citation ref-id="english"> from within the
>index's <page-sequence>.  I've also tried <fo:inline id="english"> but no
luck.

What you describe should work: using page-number-citation/@ref-id you
should be able to point to any identifier you have generated, on anything.

What are you seeing that tells you it's not working?

You might confirm that your identifiers (e.g. 'english') are actually
unique in your FO instance. Also, if your page numbering isn't
working, the generated references won't be right either -- so in your
arrangement, you shouldn't be restarting page numbering with each new
sequence. Have you confirmed that the numbering is correct?

>I know that I can put an id on the <page-sequences>'s themselves and
>then reference them, but in this case, I need to reference material
>inside the text (i.e. not just the first or last page of a page-sequence).

That is perfectly normal and the technology is designed to let you do it.

Cheers,
Wendell


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
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
======================================================================

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.