Thanks.
I am still having trouble though. I adapted the glossary.xsl and
glossary.xml (stripped this down to just a
glossary><definition></definition></glossary> structure) example that is
supplied with FOP. Now all I get is a marker on the first page of my
document (where it is not needed) and not on subsequent pages where glossary
definitions are broken over two pages.
<fo:static-content flow-name="xsl-region-before">
<fo:block text-align="start" font-size="10pt" font-family="serif"
line-height="1em + 2pt">
<fo:retrieve-marker retrieve-class-name="term"
retrieve-boundary="page-sequence"/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates select="definition"/>
</fo:flow>
<xsl:template match="definition">
<fo:block>
<fo:marker marker-class-name="definition">
<xsl:value-of select="."/>
</fo:marker>
<fo:block>
<xsl:value-of select="."/>
</fo:block>
<fo:block>
<fo:marker marker-class-name="definition"/>
</fo:block>
</fo:block>
</xsl:template>
Thanks.
Brett Williams.
-----Original Message-----
From: G. Ken Holman [mailto:gkholman(_at_)CraneSoftwrights(_dot_)com]
Sent: 18 May 2004 15:00
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] fo:marker - can this be used to display header on
page 3 using da ta from page 2?
To answer the question in your subject: no ... but you don't need to from
what I interpret from your post.
At 2004-05-18 14:41 +0100, Williams, Brett L wrote:
I am hoping to clarify what I have gathered from elsewhere with regard to
limitations of fo:marker.
Not sure what you classify about markers as limitations.
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.
The design pattern is as follows:
<static-content ...>
<retrieve-marker .../>
</static-content>
...
<xsl:for-each select="classroom">
<block>
<marker ...>Classroom (n) Continued</marker>
<block>...</block>
<block>...</block>
<block>...</block>
<block>...</block>
</block>
<block>
<marker ...></marker>
</block>
</xsl:for-each>
That way the marker is ready to be used if a page breaks in the middle of
the blocks, but if all of the blocks fit, the following marker "clears out"
the "continued text" and it doesn't show at the top.
I hope this helps.
........................ Ken
--
Public courses: Spring 2004 world tour of hands-on XSL instruction
Next: 3-day XSLT/XPath; 2-day XSL-FO - Birmingham, UK June 14,2004
World-wide on-site corporate, govt. & user group XML/XSL training.
G. Ken Holman mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers: http://www.CraneSoftwrights.com/legal
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--