You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Roger Kovack1 <we...@yahoo.com> on 2007/02/05 03:47:11 UTC

Retrieve a marker from the previous page

Is there any way of retrieving the last marker from the previous page? If the
last marker on the previous page has a content of "blah", I'd like to
display 'Continuing "blah"' in the header of the current page.

Thanks for any tips-

Roger Kovack
-- 
View this message in context: http://www.nabble.com/Retrieve-a-marker-from-the-previous-page-tf3172327.html#a8800260
Sent from the FOP - Users mailing list archive at Nabble.com.

Re: Retrieve a marker from the previous page

Posted by Chris Bowditch <bo...@hotmail.com>.
Roger Kovack1 wrote:

> Is there any way of retrieving the last marker from the previous page? 
> If the last marker on the previous page has a content of "blah", I'd 
> like to display 'Continuing "blah"' in the header of the current page. 

the problem is that a retrieve marker FO will search back through the 
document starting at the current page until it find an occurrence of the 
named marker. So that if you have markers on the current page then the 
retrieve will find the marker on the current page not the previous page.

The way I have achieved such affects is to insert 2 markers on every 
paragraph, e.g.

<fo:marker marker-class-name="current">Title2</fo:marker>
<fo:marker marker-class-name="previous">Title1</fo:marker>

Chris




---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org