xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Bernardo <lmpmberna...@gmail.com>
Subject Re: Retrieve-Marker retrieve-position = all?
Date Mon, 17 Feb 2014 23:31:36 GMT

I don't think a general solution is possible within XSL-FO. If the 
number of entries (titles) per page is fixed (except for the last page) 
then it is simple. If the number of entries per page is bounded, and 
there is enough real estate in the page to place the resolved markers 
then it can be done with some manipulation of intermediate format (IF).

The approach would be for every marker to register the current value and 
the next few ones. Say, you do not expect more than 5 entries per page. 
Then for every title you would use two markers. So marker 
"this-and-next" for title10 would be "title10, title11, title12, 
title13, title14", and marker "this" would be "title10". Then you would 
retrieve the first "this-and-next" marker in the page, and the last 
"this" marker in the page. The resolved values in IF would then look 
like "title10, title11, title12, title13, title14, title13", where the 
last entry if from the last "this" marker in the page. Then you would 
process the IF to reduce it to "title10, title11, title12, title13".

On 2/14/14, 6:45 PM, Matthias Reischenbacher wrote:
> Hi,
>
> I'd like to display multiple markers with the same name on the page 
> header. Conceptually those markers correspond to chapter titles and 
> all chapter titles, visible on a single page, should be printed. Up 
> until now I've used the retrieve-position attribute for showing the 
> first or last chapter title. But this time I'd need the first, last 
> and all in between on the current page. Is this even possible with 
> XSL-FO/FOP? If not, is it achievable by manipulating the fop 
> intermediate structure?
>
> Best regards,
> Matthias
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>


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


Mime
View raw message