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

fo:marker - can this be used to display header on page

Subject: fo:marker - can this be used to display header on page 3 using da ta from page 2?
From: "Williams, Brett L" <brett.williams@xxxxxxx>
Date: Tue, 18 May 2004 14:41:56 +0100
display header
All,

I am hoping to clarify what I have gathered from elsewhere with regard to limitations of fo:marker.

I am producing a report that is broken down into classrooms, each classroom has a number  (n) - there are a list of names under each classroom. Occasionally the list of names runs over onto the next page of the document. I need to add the text 'Classroom (n) Continued' at the top of the next page only if this happens.

I added the following to the static content for all pages except the first :-


<!--Header info all other pages-->
<fo:static-content flow-name="header-rest">
	<fo:block>
			<xsl:call-template name="HeaderInfoOtherPages"/>
	</fo:block>
	<fo:block>
<fo:retrieve-marker retrieve-marker-name="class-room"  retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
 	</fo:block>
  </fo:static-content>

Then when looping through the whole document I added a marker to pick up the value of the classroom number. This is a simplified extract.

<!--get classroom info-->
<xsl:for-each select="Sittings/Sitting">
	<fo:block space-before="5pt" space-after="5pt" font-size="10pt">
	Classroom<xsl:value-of select="ClassRoomNumber"/>
	</fo:block>
	<fo:marker marker-class-name="class-room">
		<xsl:apply-templates select="ClassRoomNumber"/>
	</fo:marker>
</xsl:for-each>

ERRORs include:-

property 'retrieve-marker-name' ignored
fo:marker must be an initial child, and marker-class-name must be unique for same parent



I am using (and have to use) FOP 0.20.4.

Thanks.

Brett Williams

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.