[xep-support] page number and page-range

From: Enrico Raymundo <enricor@thedistillery.com.au>
Date: Mon May 08 2006 - 18:19:50 PDT


I have a requirement to create a table of contents where each TOC entry
should display only the page number (15) if its contents fits on a single
page and page range (16 - 21) if its contents is spread over several pages.

I know how to implement the page range:

<fo:block>Introduction <fo:leader
leader-pattern="dots"/><fo:page-number-citation ref-id="SOD-DOC-WS-449"/> to
<fo:page-number-citation ref-id="EOD-DOC-WS-449"/>

<fo:block id="SOD-DOC-WS-449">

   <!-- CONTENT -->

   <fo:block id="EOD-DOC-WS-449"/>

What I want to be able to do is if both beginning and ending page markers
eventually end up on the same page, I only display a page number rather than
a page range: "16" instead of "16 to 16"!

Any help is appreciated.

Thanks and regards,

Enrico Raymundo
The Distillery Pty Ltd
Phone : (02) 6272 0220
Mobile : 0403 490 714
Email : enricor@thedistillery.com.au
Web : www.thedistillery.com.au

The Distillery Pty Limited
ABN 69 080 932 467
PO Box 940, Dickson ACT 2602, AUSTRALIA
Phone: +61 2 6272 0200
Fax: +61 2 6262 5151
Web: www.thedistillery.com.au

The information contained in this email and any files attached may be
confidential and/or copyrighted information of The Distillery, Third
Parties and/or the intended recipient and may be the subject of legal
privilege or public interest immunity. You may only reproduce or
distribute the material if you are expressly authorised by us to do
so. If you are not the intended recipient, any use, disclosure,
copying, circulation, forwarding, printing or publication of this
message or attached files is strictly forbidden.

If you have received this document in error or are not an intended
recipient, please notify the sender and delete from your Inbox and/or

The Distillery does not represent or warrant that files attached to
this e-mail are free from computer viruses or other defects and
liability is limited to the resupply (or cost of resupply) of the
attached files.

(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html
Received on Mon May 8 18:58:49 2006

This archive was generated by hypermail 2.1.8 : Mon May 08 2006 - 18:58:52 PDT