[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSL-FO Pagination

Subject: RE: XSL-FO Pagination
From: "Peter Kester" <peter.kester@xxxxxxxxxxx>
Date: Mon, 31 Oct 2005 16:22:44 +0100
xsl fo pagination
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-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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.