xsl-list
[Top] [All Lists]

Re: fo:marker - can this be used to display header on page 3 using da ta from page 2?

2004-05-18 06:59:35
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



<Prev in Thread] Current Thread [Next in Thread>
  • Re: fo:marker - can this be used to display header on page 3 using da ta from page 2?, G. Ken Holman <=