[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|