[
https://issues.apache.org/jira/browse/FOP-2293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pascal Sancho updated FOP-2293:
-------------------------------
Attachment: multi-switch_bestfit.fo
Regarding your latest test.fo case, I don't understand how you plan to add the
whitespace management extension.
IIUC, and based on GA suggestion, I've imagined something like that:
- use a fo:multi-switch structure, with some fo:multi-case
- add the fox:fitting-strategy attribute directly on fo:multi-switch element
- use fo:multi-toggle only if needed by extension implementation, i.e. adding
either a new fox:atttribute, or a new fox:value for the switch-to attribute;
this addition aiming to indicate witch strategy is used.
This is illustrated in the proposed FO file, with 3 alternatives:
case 1: without fo:multi-toggle
case 2: with fo:multi-toggle and new attribute fox:auto-switch
case 3: with fo:multi-toggle and new value "fox:bestfit" for attribute switch-to
the 3rd case breaks the REC conformance, so I don't like it.
> Whitespace management extension
> -------------------------------
>
> Key: FOP-2293
> URL: https://issues.apache.org/jira/browse/FOP-2293
> Project: Fop
> Issue Type: New Feature
> Components: general
> Affects Versions: trunk
> Reporter: Seifeddine Dridi
> Priority: Minor
> Labels: XSL-FO
> Fix For: trunk
>
> Attachments: bestfit.fo, doc.pdf, FO_multi-switch.patch,
> FO_multi-switch_test.fo, multiple-feasible-nodes.fo, multi-switch_bestfit.fo,
> patch.patch, patch-rev1.1.patch, patch-rev1.patch, patch-rev2.patch
>
>
> I have been working on an extension for whitespace management, similar to
> what's described here:
> http://wiki.apache.org/xmlgraphics-fop/WhitespaceManagement
> The logic of the extension is very simple: the user defines a set of
> alternatives that he wishes to insert at the end of a page, then if there is
> enough space left, FOP will pick the alternative that best matches the user's
> selection criteria (first fit, smallest fit, biggest fit).
> This is my first work on FOP and it took me almost 2 months to reach this
> stage in development. But it's not the end of course, so I'm relying on your
> feedback to improve it.
> Thank you
--
This message was sent by Atlassian JIRA
(v6.1#6144)