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

Re: XSL-FO Question - fo:retrieve-marker

Subject: Re: XSL-FO Question - fo:retrieve-marker
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Tue, 06 Feb 2007 22:17:48 +0100
Re:  XSL-FO Question - fo:retrieve-marker
Jeff Sese wrote:
then i need to have headers like these:
page 1: title 1 - title 2
page 2: title 2 - title 3
page 3: title 3
page 4: title 3 - title 4

but so far what i get is this:

page 1: title 1 - title 2
page 2: title 2 - title 3
page 3: title 3 - title 3
page 4: title 3 - title 4

You can try to define an empty heading-end marker after the heading start, and the real heading-end right before the next heading start. Be careful to have a proper heading end at the end of the document.

 <xsl:template match="article">
    <fo:block>
       <fo:marker marker-class-name="heading-start"><xsl:value-of
 select="head"/></fo:marker>
       <fo:marker marker-class-name="heading-end" />
       <xsl:apply-templates/>
       <fo:marker marker-class-name="heading-end"><xsl:value-of
 select="concat(' - ', head)"/></fo:marker>
    </fo:block>
 </xsl:template>

Beware: untested.

J.Pietschmann

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.