Even if you do uniquely identify these items, if there are two
references on the same printed page you will get an index like:
3, 3, 5, 6, 7
... rather than:
3, 5-7
The <fo:page-number-citation> is exactly and only that: a
citation. It does not create page ranges and does not remove
duplicate page numbers.
If <fo:page-number-citation> was satisfactory for a general-purpose
index, then the designers would not have created <index-page-citation-list>.
Unless you are, perhaps, putting one item on each page with no risk
of duplicates, the XSLT has no idea where page breaks are. Thus, you
can end up with multiple references to an item on a single printed
page, causing the duplicates in the index that your users likely will
not accept.
If FOP does not support <index-page-citation-list>, then I suggest
you use the two-pass methodology I cited in my earlier message that
does use <fo:page-number-citation> in the first pass and reduces this
to unique page numbers and ranges before the second pass uses the
massaged page numbers.
I hope this helps.
. . . . . . . . Ken
At 2012-01-15 14:38 -0600, Jesse Schaaf wrote:
Seems that you can only use the value in id once. The reference
could show up multiple times through the publication. I tried to
place the value that is in the <MEDDINDEX> tag from my XML doc onto
the ID value but received an error saying that I can not use
duplicate values. I used something like this:
<fo:block text-indent='-9pt' id="MEDDINDEX" start-indent='9pt'>
<xsl:value-of select="." />
</fo:block>
--
Contact us for world-wide XML consulting and instructor-led training
Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/uoui9h
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Google+ profile: https://plus.google.com/116832879756988317389/about
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--~------------------------------------------------------------------
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>
--~--