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

Re: how to format page number citation as "01"

Subject: Re: how to format page number citation as "01"
From: JZhang@xxxxxxxxxxxxx
Date: Mon, 28 Jan 2002 11:11:42 -0500
fo page sequence format
what I used is just as follows:

<fo:page-sequence master-name="main" format="01">

<fo:block-container border-style="solid" border-left-style="solid"
border-right-style="solid" border-width="0.5mm" height="8mm" width="40mm"
top="29mm" left="0mm" position="absolute">
<fo:block font-family="Helvetica" font-size="12pt" font-weight="normal"
line-height="8mm" text-align="center" vertical-align="middle" >
      PAGE
      <fo:inline  font-size="14pt" font-weight="bold">
        <fo:page-number />
      </fo:inline>
    OF
      <fo:inline font-size="14pt" font-weight="bold" >
        <fo:page-number-citation  ref-id='endofdoc'/>
      </fo:inline>
      </fo:block>
    </fo:block-container>

  <fo:block  id="endofdoc">
    <fo:page-number />
  </fo:block >

the result form xalan and fop is PAGE 01 OF 3


                                                                                                                                 
                    "G. Ken Holman"                                                                                              
                    <gkholman@CraneSoftwrights.       To:     xsl-list@xxxxxxxxxxxxxxxxxxxxxx                                    
                    com>                              cc:                                                                        
                    Sent by:                          Subject:     Re:  how to format page number citation as "01"          
                    owner-xsl-list@xxxxxxxxxxxx                                                                                  
                    rytech.com                                                                                                   
                                                                                                                                 
                                                                                                                                 
                    01/28/2002 10:40 AM                                                                                          
                    Please respond to xsl-list                                                                                   
                                                                                                                                 
                                                                                                                                 




Sorry, I meant to cite chapter and verse for my claim about the formatting
of the page number citation:

   6.6.11: fo:page-number-citation

   The cited page-number string is obtained by converting the
   cited page-number in accordance with the number to string
   conversion properties of the ancestor fo:page-sequence of
   the referenced formatting object.

At 2002-01-28 10:38 -0500, I wrote:
>At 2002-01-28 10:09 -0500, JZhang@xxxxxxxxxxxxx wrote:
>>actually what I really want is format like this:
>>page-number OF total-page-number ( 02 OF 08 )
>>
>>so I use format in page-sequence to set the format for page-number
>>       <fo:page-sequence master-name="main" format="01">
>>
>>but it doesn't work with page-number-citation which i used to get total
>>page number
>>the result i get is : 01 OF 3
>
>It looks like the software implementing <page-number> is respecting the
>format token of the <page-sequence> as it is supposed to.
>
>This would indicate either:
>
>(1) - the format token of the page-sequence containing the block you are
>citing for your last page is not "01"
>
>(2) - your software is not respecting the format token of the
>page-sequence of the citation as it is supposed to
>
>I can't think of any other reasons.
>
>................... 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






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


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.