You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Heidi Gerken <he...@kmobjects.com> on 2001/06/20 20:58:39 UTC

Please help with block breaks

I implore any member of this list to give me an answer to my question. Does
keep-with-next, keep-with-previous, keep-together or keep-together.within-page
work with blocks or list-blocks? If so, how should it be implemented? I have a
series of 4 list blocks, like the one below, inside a parent block. I would like
all four list blocks within the block to be on the same page; if they cannot
fit, I want the entire block to move to the next page. Is this possible? Would
someone, please, tell me how I can do this. (I hope you sense the desperation in
my email, because I am truly losing my mind over this one.)

<fo:block font-size="10pt" font-weight="normal"
keep-together.within-page="always">
  <fo:list-block space-before.optimum="4pt"
provisional-distance-between-starts="80pt" provisional-label-separation="0pt"
keep-together.within-page="always">
      <fo:list-item vertical-align="middle">
          <fo:list-item-label keep-with-next="always">
          <fo:block line-height="12pt"
keep-with-next="always">Abstract:</fo:block>
          </fo:list-item-label>

          <fo:list-item-body keep-with-previous="always">
          <fo:block font-size="10pt" line-height="12pt"
keep-with-previous="always">
              <xsl:apply-templates select="Abstract"/>
          </fo:block>
      </fo:list-item>
  </fo:list-block>
	.
	.
	.
</fo:block>


Thank you,
Heidi Gerken
KM Objects
2200 Clarendon Blvd., Suite 1401
Arlington, VA 22201
703.841.4284
heidi.gerken@kmobjects.com


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: Please help with block breaks

Posted by Eric Dalquist <eb...@mtu.edu>.
Unfortunately I do not think any of the keep-* attributes work. At least not
as of FOP 0.18.1 if you read the page:
http://xml.apache.org/fop/implemented.html
the only keep-* attribute listed is keep-with-next and it has (broken) next
to it. I have also tried these using the keep-* tags with no success. I hope
someone can back me up or prove me wrong on this.

-Eric Dalquist

----- Original Message -----
From: "Heidi Gerken" <he...@kmobjects.com>
To: <fo...@xml.apache.org>
Sent: Wednesday, June 20, 2001 2:58 PM
Subject: Please help with block breaks


> I implore any member of this list to give me an answer to my question.
Does
> keep-with-next, keep-with-previous, keep-together or
keep-together.within-page
> work with blocks or list-blocks? If so, how should it be implemented? I
have a
> series of 4 list blocks, like the one below, inside a parent block. I
would like
> all four list blocks within the block to be on the same page; if they
cannot
> fit, I want the entire block to move to the next page. Is this possible?
Would
> someone, please, tell me how I can do this. (I hope you sense the
desperation in
> my email, because I am truly losing my mind over this one.)
>
> <fo:block font-size="10pt" font-weight="normal"
> keep-together.within-page="always">
>   <fo:list-block space-before.optimum="4pt"
> provisional-distance-between-starts="80pt"
provisional-label-separation="0pt"
> keep-together.within-page="always">
>       <fo:list-item vertical-align="middle">
>           <fo:list-item-label keep-with-next="always">
>           <fo:block line-height="12pt"
> keep-with-next="always">Abstract:</fo:block>
>           </fo:list-item-label>
>
>           <fo:list-item-body keep-with-previous="always">
>           <fo:block font-size="10pt" line-height="12pt"
> keep-with-previous="always">
>               <xsl:apply-templates select="Abstract"/>
>           </fo:block>
>       </fo:list-item>
>   </fo:list-block>
> .
> .
> .
> </fo:block>
>
>
> Thank you,
> Heidi Gerken
> KM Objects
> 2200 Clarendon Blvd., Suite 1401
> Arlington, VA 22201
> 703.841.4284
> heidi.gerken@kmobjects.com
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org