[xep-support] page number and page-range

Enrico Raymundo enricor at thedistillery.com.au
Mon May 8 18:19:50 PDT 2006


Hi,

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:

TOC ENTRY
<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>


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

   <!-- CONTENT -->

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


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

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



More information about the Xep-support mailing list