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

Re: page-number-citation

Subject: Re: page-number-citation
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Jan 2002 11:22:38 -0500
xml publisher fo page number
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"/>

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


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.
First Name
Last Name
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.