xmlgraphics-fop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tony Graham <Tony.Gra...@Sun.COM>
Subject Re: markers in redesign
Date Mon, 03 Mar 2003 23:13:01 GMT
J.Pietschmann wrote at  3 Mar 2003 21:58:55 +0100:
 > This still leaves the question: Does a block with a
 > break-before="page" or a break-after="page" span two pages,
 > or will it always be the first/last area on the page its
 > content is rendered on?

One page (assuming it fits within one page).

7.19.1, "break-after"

   Specifies that the first normal area generated by formatting the
   next formatting object, if any, shall be the first one placed in a
   particular context (e.g., page-area, column-area).

7.19.2, "break-before"

   Specifies that the first area generated by this formatting object
   shall be the first one placed in a particular context (e.g.,
   page-area, column-area).

 > Examples
 >   <fo:block id="A">
 >     <fo:marker marker-class="I" id="m1"/>
 >     <fo:block id="B" break-after="page">
 >       <fo:marker marker-class="I" id="m2"/>
 >       ...
 >     </fo:block>
 >   </fo:block>
 > Does last-ending-within-page retrieve m1 or m2?
 > I'd think m2.

So do I.

 >   <fo:block id="A" break-after="page">
 >     <fo:marker marker-class="I" id="m1"/>
 >     <fo:block id="B">
 >       <fo:marker marker-class="I" id="m2"/>
 >       ...
 >     </fo:block>
 >   </fo:block>
 > Does last-ending-within-page retrieve m1 or m2?
 > Probably m1, but where in the spec can I find backing for this
 > opinion?

I think m2, since B follows A in a pre-order traversal order.

7.23.3. "retrieve-position"

   last-ending-within-page

      Specifies a preference for retrieving the children of an
      fo:marker attached to an area that is within the containing page
      whose "is-last" trait is set to "true" and that follows in the
      area tree any other similarly constrained area that is attached
      to an identically named fo:marker, using pre-order traversal
      order.

Regards,


Tony Graham
------------------------------------------------------------------------
XML Technology Center - Dublin
Sun Microsystems Ireland Ltd                       Phone: +353 1 8199708
Hamilton House, East Point Business Park, Dublin 3            x(70)19708

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


Mime
View raw message