RE: [xsl] XSL-FO Pagination

Subject: RE: [xsl] XSL-FO Pagination
From: "Peter Kester" <peter.kester@xxxxxxxxxxx>
Date: Mon, 31 Oct 2005 16:22:44 +0100
Hello,

What I normally use is the following:
<xsl:for-each select="website/page/section">
     <fo:block text-align="left" space-after="24pt"><xsl:value-of
      select="title"/>
    <fo:basic-link internal-destination="{generate-id(.)}">
      <xsl:value-of select="title"/>
   </fo:basic-link>
   <fo:inline font-weight="normal" font-size="10pt">
     <fo:leader leader-pattern="dots"/>Page
     <fo:page-number-citation ref-id="{generate-id(.)}"/>
   </fo:inline>
 </fo:block>
 </xsl:for-each>

I think position() returns a number and that isnt valid for id/idref.

Regards,

Peter




Ing. P.A. Kester
Senior Consultant



Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
Tel.: +31 (0) 10 850 1200
Fax: +31 (0) 10 850 1199
www.daidalos.nl


De informatie - verzonden in of met dit emailbericht - is afkomstig van
Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit
bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit
bericht kunnen geen rechten worden ontleend.


Van: Joan Alvarez [mailto:ALVAREJO@xxxxxxxxx]
Verzonden: maandag 31 oktober 2005 15:33
Aan: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Onderwerp: [xsl] XSL-FO Pagination

Hi,

Would anyone be able to provide a hint as to why, using the following code,
the page number would not be displayed on my Table of Contents page?

<xsl:for-each select="website/page/section">
     <fo:block text-align="left" space-after="24pt"><xsl:value-of
      select="title"/>
    <fo:basic-link internal-destination="{position()}">
      <xsl:value-of select="title"/>
   </fo:basic-link>
   <fo:inline font-weight="normal" font-size="10pt">
     <fo:leader leader-pattern="dots"/>Page
     <fo:page-number-citation ref-id="{position()}"/>
   </fo:inline>
 </fo:block>
 </xsl:for-each>

Also, I am using  break-before="page"  in my code and it works, but I need it
to start the process on the second, not the first of a group of pages.  Once
you have this instruction in your code, if there is no way to have it commence
on the second page, is there a way to over-ride it for the first page only.  I
have tried break-after="page" and it does not work either and provides an
unwanted page in another area of the output.

Any assistance would be greatly appreciated.

Joan Alvarez <alvarejo@xxxxxxxxx>

Current Thread