Page numbering format

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Page numbering format

Mario Madunic

Hi,

 

I’m currently formatting page numbers with ‘section – page#’ by the following method:

<fo:inline>1 - <fo:page-number /></fo:inline> this is done for around 27 sections

 

When viewed in bookmarks as thumbnails none of the section info appears as part of the page number. So page number 1 or let’s say 25 will appear again for each section. The current PDFs do show this info but it is created manually.

 

My question is, is there a way to have the page numbers set as ‘section – page#’ and this will be retrieved by the bookmark thumbnails and any other index that requires page numbers?

 

Marijan (Mario) Madunic

Publishing Specialist

New Flyer Industries



Please consider the environment before printing this e-mail.


CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: Page numbering format

Tony Graham-3
On Wed, March 9, 2011 4:45 pm, Mario Madunic wrote:
...
> My question is, is there a way to have the page numbers set as ‘section
> – page#’ and this will be retrieved by the bookmark thumbnails and any
> other index that requires page numbers?

Have you looked at fo:folio-prefix [1]?

Dave Pawson has some examples that use it [2], as does Antenna House [3].

Regards,


Tony Graham                         [hidden email]
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

[1] http://www.w3.org/TR/xsl11/#fo_folio-prefix
[2] http://www.dpawson.co.uk/xsl/examples.html
[3] http://www.antennahouse.com/XSLsample/XSL11sample.htm#page-no-reference

Reply | Threaded
Open this post in threaded view
|

RE: Page numbering format

Mario Madunic
Thanks Tony.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Tony Graham
Sent: Wednesday, March 09, 2011 1:43 PM
To: [hidden email]
Subject: Re: Page numbering format

On Wed, March 9, 2011 4:45 pm, Mario Madunic wrote:
...
> My question is, is there a way to have the page numbers set as ‘section
> – page#’ and this will be retrieved by the bookmark thumbnails and any
> other index that requires page numbers?

Have you looked at fo:folio-prefix [1]?

Dave Pawson has some examples that use it [2], as does Antenna House [3].

Regards,


Tony Graham                         [hidden email]
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

[1] http://www.w3.org/TR/xsl11/#fo_folio-prefix
[2] http://www.dpawson.co.uk/xsl/examples.html
[3] http://www.antennahouse.com/XSLsample/XSL11sample.htm#page-no-reference


Please consider the environment before printing this e-mail.


CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.
Reply | Threaded
Open this post in threaded view
|

RE: Page numbering format

Mario Madunic
In reply to this post by Tony Graham-3
Ran a quick test and it worked like a charm. Thanks again Tony.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Tony Graham
Sent: Wednesday, March 09, 2011 1:43 PM
To: [hidden email]
Subject: Re: Page numbering format

On Wed, March 9, 2011 4:45 pm, Mario Madunic wrote:
...
> My question is, is there a way to have the page numbers set as ‘section
> – page#’ and this will be retrieved by the bookmark thumbnails and any
> other index that requires page numbers?

Have you looked at fo:folio-prefix [1]?

Dave Pawson has some examples that use it [2], as does Antenna House [3].

Regards,


Tony Graham                         [hidden email]
Director                                  W3C XSL FO SG Invited Expert
Menteith Consulting Ltd                               XML Guild member
XML, XSL and XSLT consulting, programming and training
Registered Office: 13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
Registered in Ireland - No. 428599   http://www.menteithconsulting.com
  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
xmlroff XSL Formatter                               http://xmlroff.org
xslide Emacs mode                  http://www.menteith.com/wiki/xslide
Unicode: A Primer                               urn:isbn:0-7645-4625-2

[1] http://www.w3.org/TR/xsl11/#fo_folio-prefix
[2] http://www.dpawson.co.uk/xsl/examples.html
[3] http://www.antennahouse.com/XSLsample/XSL11sample.htm#page-no-reference


Please consider the environment before printing this e-mail.


CONFIDENTIALITY STATEMENT: This communication (and any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.