[xep-support] Table-of-contents issue

Alexander Peshkov peshkov at renderx.com
Tue Feb 8 04:54:13 PST 2005


Hello Martin,

Could you provide us with a short XSL-FO document that demonstrates the
problem? You can send it directly to support at renderx.com (in archive,
please). What version of XEP you are using?

Best regards,
Alexander Peshkov                             mailto:peshkov at renderx.com
RenderX

MH> Hi there,

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

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

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

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

MH> All help appreciated,
MH> Martin

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

MH> -------------------
MH> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
MH> in the body of the message to majordomo at renderx.com from the address
MH> you are subscribed from.
MH> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html


-------------------
(*) 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