[xep-support] Table-of-contents issue

Martin Holmes mholmes at uvic.ca
Mon Feb 7 15:28:55 PST 2005


Hi there,

I'm having trouble getting page-numbers to show up correctly in a "table of 
contents" page, the reason being that the table of contents page is part of 
a "front matter" section which will be numbered with roman numerals (i, ii, 
iii etc.), while the actual content pages themselves start three pages in, 
and are numbered starting with 1, as normal.

The problem comes when I use this code to insert page numbers into my table 
of contents:

<fo:block text-align-last="justify">
                     <xsl:value-of select="text/front/docTitle/titlePart" />
                     <fo:leader leader-pattern="dots"/>
                     <fo:page-number-citation>
                         <xsl:attribute name="ref-id">
                             <xsl:value-of select="@id" />
                         </xsl:attribute>
                     </fo:page-number-citation>
                 </fo:block>

The page numbers inserted are counted from the beginning of the whole 
document, so they are off by a few pages, because the front matter pages 
are included in the count. Does anyone know how to get around this?

All help appreciated,
Martin

______________________________________
Martin Holmes
University of Victoria Humanities Computing and Media Centre
mholmes at uvic.ca
martin at mholmes.com
mholmes at halfbakedsoftware.com
http://www.mholmes.com
http://web.uvic.ca/hcmc/
http://www.halfbakedsoftware.com

-------------------
(*) 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/tos.html



More information about the Xep-support mailing list