[prev in list] [next in list] [prev in thread] [next in thread] 

List:       fop-user
Subject:    Re: Retrieve-Marker retrieve-position = all?
From:       Luis Bernardo <lmpmbernardo () gmail ! com>
Date:       2014-02-17 23:31:36
Message-ID: 53029BD8.30005 () gmail ! com
[Download RAW message or body]


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic