Re: [xsl] how to format page number citation as "01"

Subject: Re: [xsl] how to format page number citation as "01"
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 28 Jan 2002 08:33:43 -0500
At 2002-01-27 17:05 -0500, JZhang@xxxxxxxxxxxxx wrote:
I want to format the page number citation like "01" instead of "0"
how to put xsl function like <fo:page-number-citation  ref-id='endofdoc'/>
into the value of format-number like format-number
('<fo:page-number-citation
ref-id='endofdoc'/>', '00')

In XSLFO 1.0 the rendering of a cited page number is dictated by the page number formatting of the page sequence in which the cited page is found. This cannot be overridden at the point of the citation.


This design frees the stylesheet writer from having to know the formatting of the page sequence ... consider that perhaps front matter might be formatted using roman numerals, yet one is in a chapter page sequence. The citation will render the page number of the front matter in the front matter numbering conventions, thus guaranteeing the format of the number in the flow of the text will match the format of the number in the cited page sequence.

This matching would be very important (I would think) for the reader navigation ... why would you want to cite the page number differently than how the page you are citing formats its page number?

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