J.Pietschmann wrote:
> There is a comment in Flow.java (soon/now AbstractFlow.java)
> // flow is *always* laid out into a BodyAreaContainer
>
> I was not able to find support for this directly in the
> spec, although I think this is reasonable.
>
> Can anybody comment on this?
>
(Inferring from layout/Page.java in the maintenance branch that
BodyAreaContainer is used for the fo:region-body object, and that
AreaContainer is used for the other regions). The following sections of the
standard seem to at least imply a contrary conclusion:
6.4.13, 1st pointer: "Typically, for paged media, the areas returned by the
fo:flow formatting object in a fo:page-sequence are made to be descendants
of a sequence of region-reference-areas that correspond to the region-body.
These region-reference-areas are all area descendants of page-areas for
which the page-master included an fo:region-body. If the fo:flow flow is
assigned to some other region, then the areas returned by the fo:flow are
constrained to be descendants of region-reference-areas generated using the
assigned region-master."
7.25.5, para before last pointer: "The flow-name and region-name are used to
assign the flow's content (or static-content's content) to a specific region
or series of regions in the layout. In XSL this is done by specifying the
name of the target region as the flow-name. (For example, text placed in the
region-body would specify flow-name="xsl-region-body".)
>From these two sections, my understanding of the fo:static-content object is
that it is a sort of specialized fo:flow object, a subclass if you will (or
perhaps each is a subclass of some higher abstraction). They each have
exactly one property, "flow-name", and it appears that either should be able
to point to any region within the page-sequence-master object.
I would interpret the code comment to apply to the FOP implementation, not
the standard. I agree that this limitation is reasonable, but perhaps it
should be documented, and perhaps should include appropriate exceptions. Of
course, if it doesn't cost much, I suppose it would be better to comply with
the standard.
Victor Mote (mailto:[EMAIL PROTECTED])
Enterprise Outfitters (www.outfitr.com)
2025 Eddington Way
Colorado Springs, Colorado 80916
Voice 719-622-0650, Fax 720-293-0044
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]