[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] page-number-citation


Subject: Re: [xsl] page-number-citation
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Jan 2002 11:22:38 -0500

At 2002-01-29 14:53 +0000, DPawson@xxxxxxxxxxx wrote:
Would someone confirm please, its not possible
to generate an index of the form

<fo:block> index entry <fo:page-number-citation ref-id="abd"/>,
        <fo:page-number-citation ref-id="abd"/>
</fo:block>

Such that repeated page-numbers are not duplicated?

Yes, this is not possible in XSLFO 1.0.


I have a number of 'entries' per page, and the generated index
looks ..... not nice.

I'm working on indexing my electronic publications, and my methodology is becoming fairly extensive (which is why it isn't completed yet):


  (1) - format printable XML markup in the PDF where attribute
        the visible markup of attributes includes the formatted
        page numbers ... e.g.:
          &lt;entry page="<page-number-citation ref-id="abd"/>"&gt;...
  (2) - extract the text from the PDF of the index as a well-
        formed XML document ... e.g.:
          <entry page="12">...
  (3) - run a stylesheet that interprets the page numbers and
        does the reduction of the page ranges, including sorting,
        index levels, etc.
  (4) - format the page ranges into the formatted index
  (5) - delete the XML index from the PDF
  (6) - append the formatted index to the PDF

I've determined from my tests that the above methodology works ... it is just a matter of finding the time to do it all in my publishing environment.

I plan to include the methodology as an annex in a future edition of the XSLFO book.

I hope this helps.

.......................... Ken


-- Upcoming: 3-days XSLT/XPath and/or 2-days XSLFO - Feb 18-22, 2002

G. Ken Holman                mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.         http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995)
ISBN 0-13-065196-6                        Definitive XSLT & XPath
ISBN 1-894049-08-X  Practical Transformation Using XSLT and XPath
ISBN 1-894049-07-1               Practical Formatting Using XSLFO
XSL/XML/DSSSL/SGML/OmniMark services, books(electronic, printed),
articles, training(instructor-live,Internet-live,web/CD,licensed)
Next public training:  02-02-11,12,14,15,18,21,03-04,05,06,08,11,
-                                04-08,09,10,12,05-14,15,06-04,07


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




Current Thread
Keywords