xsl-list
[Top] [All Lists]

RE: FO: keep strength with larger than a page content

2004-08-24 21:48:59
Hi,

where the item body contains e.g. large screen captures and 
will not fit 
into a single page. If I set

  fo:list-item-body keep-together="1"
    fo:block keep-together="2"
      fo:block
      fo:external-graphic
    fo:block keep-together="2"
      fo:block
      fo:external-graphic

Then that should take care of it, but because I have no 
"wrapper blocks" 
in the item body, so should I then create

  fo:list-item-body keep-together="1"
    fo:block keep-together="2"
      fo:block
      fo:external-graphic
      fo:block
      fo:external-graphic

where the block on line two is there just to define the keep block?

Sounds good to me ... but I haven't tested it because there 
are no tools 
... it was exactly this, a very long list, where I tried to 
use it only to 
discover it wasn't supported.  At the end of my XSLT and 
XSL-FO books I 
have long lists of information (20-60 pages long), and I 
tried the nested 
higher values of keeps to keep items from breaking because I 
was using the 
same list construct as for short lists.

From a technical point of view, would it possible to implement an extension to 
the keep-* value set that kept things together except when overflow would 
occur, e.g. value "always-unless-overflow"? (I don't know the XSL processing 
model well enough to see if there are things that would make such a keep rule 
impossible to implement.) Specifying keep strength is one way of keeping e.g. 
list items together, but in my case I don't know possible break points in the 
list item body, so what I'd really like to say is "keep the list item body 
together, except when it doesn't fit into a single page, in that case break 
anywhere you want".

Cheers,

Jarno


<Prev in Thread] Current Thread [Next in Thread>