You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Matthias Treitler <St...@gmx.at> on 2005/09/27 20:56:16 UTC
more than one fo:flow in fo:page-sequence
Hey guys!
I have had a problem with the latest fop a few days ago. I found out that only
one fo:flow is permitted in the fo:page-sequence tag, but the Antenna House
FO Parser allows more than one fo:flows! I also think this is the standard
made by the W3C!
But then: What is if i have a region-before, region-body and maybe a
region-after on one sheet (not a static-context)?!?
Is this a bug, or a missing feature?
Best regards,
Matthias
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: more than one fo:flow in fo:page-sequence
Posted by JB...@s-s-t.com.
> I guess I'm missing something from your problem
> that Jay is apparently picking up.
I doubt that, Glen. I used static-content areas, as you suggest.
I have observed that many folks have trouble with the mapping from the
names in the simple-page-master to the areas defined within the page
sequences. So I thought an example from an actual working file might help.
Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: more than one fo:flow in fo:page-sequence
Posted by Glen Mazza <gm...@apache.org>.
Matthias Treitler wrote:
>
> Ok, i want to make a head, a body and a foot part of my site! So i have to
> implement a xsl-region-before, xsl-region-body and xsl-region-after part on
> my site! You understand?!?
> But i can only implement a <fo:flow flow-name="xsl-region-before"> or a
> <fo:flow flow-name="xsl-region-body"> but not both! So what should i do in
> that case?!
>
(site = Seite = page?) I don't understand why you just don't use
fo:static-content for your header and footer. I guess I'm missing
something from your problem that Jay is apparently picking up.
Glen
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: more than one fo:flow in fo:page-sequence
Posted by JB...@s-s-t.com.
Ok, i want to make a head, a body and a foot part of my site! So i have
to
implement a xsl-region-before, xsl-region-body and xsl-region-after part
on
my site! You understand?!?
But i can only implement a <fo:flow flow-name="xsl-region-before"> or a
<fo:flow flow-name="xsl-region-body"> but not both! So what should i do in
that case?!
-----------------------------------------------------------------------------------
Here's how (a trimmed down portion of one of my XSL files that I use to
produce a data dictionary):
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="first">
<fo:region-body region-name="first" />
</fo:simple-page-master>
<fo:simple-page-master master-name="contents">
<fo:region-body region-name="contents" margin-top="1in"
margin-bottom="1in" />
<fo:region-before region-name="header-contents" extent="1in" />
<fo:region-after region-name="footer-contents" extent="1in" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="first">
<fo:flow flow-name="first">
<fo:block xsl:use-attribute-sets="doctitle">
<!-- Title and legal page blocks go here -->
</fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="contents"
initial-page-number="1" format="i">
<fo:static-content flow-name="header-contents">
<fo:block xsl:use-attribute-sets="body">
<!-- header stuff goes here -->
</fo:block>
</fo:static-content>
<fo:static-content flow-name="footer-contents">
<fo:block xsl:use-attribute-sets="footercenter">
<!-- footer stuff goes here -->
</fo:block>
</fo:static-content>
<fo:flow flow-name="contents">
<fo:block xsl:use-attribute-sets="pagetitle1" id="contents">
Contents
</fo:block>
<fo:block xsl:use-attribute-sets="contents1">
<fox:outline internal-destination="contents">
<fox:label>Contents</fox:label>
</fox:outline>
<xsl:apply-templates mode="contents" />
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="main" initial-page-number="1">
<fo:static-content flow-name="header-main">
<fo:block xsl:use-attribute-sets="body">
<!-- header stuff goes here -->
</fo:block>
</fo:static-content>
<fo:static-content flow-name="footer-main">
<fo:block xsl:use-attribute-sets="footercenter">
<!-- footer stuff goes here -->
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<!-- build the bookmarks -->
<xsl:apply-templates mode="bookmark" />
<!-- build the body content -->
<xsl:apply-templates />
</fo:flow>
</fo:page-sequence>
<!-- and so on -->
Notice the ways names map from the simple-page-masters to the named
portions within page-sequences.
HTH
Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: more than one fo:flow in fo:page-sequence
Posted by Matthias Treitler <St...@gmx.at>.
Hi!
> > But then: What is if i have a region-before, region-body and maybe a
> > region-after on one sheet (not a static-context)?!?
>
> I'm sorry, I can't parse this question... Please clarify.
Ok, i want to make a head, a body and a foot part of my site! So i have to
implement a xsl-region-before, xsl-region-body and xsl-region-after part on
my site! You understand?!?
But i can only implement a <fo:flow flow-name="xsl-region-before"> or a
<fo:flow flow-name="xsl-region-body"> but not both! So what should i do in
that case?!
Best regards,
Matthias
PS: Sorry for my bad english style!
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: more than one fo:flow in fo:page-sequence
Posted by Glen Mazza <gm...@apache.org>.
Andreas L Delmelle wrote:
>> Sorry, but I disagree. The content-model of fo:page-sequence is:
>>
>> (title?,static-content*,flow)
>
>
> Or maybe you're referring to the XSL-FO 1.1 Rec, which FOP currently
> does not implement.
>
> There indeed, more than one flow may be put inside a page-sequence, and
> mapped to the regions using fo:flow-map...
>
I think the XSL WG will be increasing the amount of documentation in the
1.1 WD that describes how multiple flows and flow-maps will work.
Alongside multiple fo:flows, in the 1.1 WD, fo:simple-page-master has
been expanded to allow multiple fo:region-bodies (although perhaps it
would have been nicer if they kept fo:s-p-m unchanged and created a new
fo:page-master that would have this advanced functionality.) I am
guessing an fo:flow-map would not really be needed for multiple flows;
just have one fo:flow refer to one fo:region-body and a second fo:flow
refer to another fo:region-body within the fo:s-p-m.
The fo:flow-map (again, my guess), is for when you want the contents of
one fo:flow to flow from one fo:region-body to another within the same
fo:simple-page-master. Anyway, this will be fun 1.1 stuff for the FOP
team and user community.
Glen
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: more than one fo:flow in fo:page-sequence
Posted by JB...@s-s-t.com.
> Where *is* my head at...? :-S
Where it belongs - in the code for the new version. :D
My 2 cents: Until 1.1 is a rec (rather than a draft), the FOP team should
hold off on supporting it. So, until then, FOP should support only one
flow per page sequence.
Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: more than one fo:flow in fo:page-sequence
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Sep 27, 2005, at 21:09, Andreas L Delmelle wrote:
>
> Or maybe you're referring to the XSL-FO 1.1 Rec, which FOP currently
> does not implement.
Which isn't a 'Rec' yet either BTW... It's still a 'Working Draft'.
Where *is* my head at...? :-S
Cheers,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: more than one fo:flow in fo:page-sequence
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Sep 27, 2005, at 21:05, Andreas L Delmelle wrote:
> On Sep 27, 2005, at 20:56, Matthias Treitler wrote:
>
> Hi,
>
>> I have had a problem with the latest fop a few days ago. I found out
>> that only
>> one fo:flow is permitted in the fo:page-sequence tag, but the Antenna
>> House
>> FO Parser allows more than one fo:flows! I also think this is the
>> standard
>> made by the W3C!
>
> Sorry, but I disagree. The content-model of fo:page-sequence is:
>
> (title?,static-content*,flow)
Or maybe you're referring to the XSL-FO 1.1 Rec, which FOP currently
does not implement.
There indeed, more than one flow may be put inside a page-sequence, and
mapped to the regions using fo:flow-map...
Sorry if I came across as rude. Should have checked this before I
answered.
Cheers,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: more than one fo:flow in fo:page-sequence
Posted by Andreas L Delmelle <a_...@pandora.be>.
On Sep 27, 2005, at 20:56, Matthias Treitler wrote:
Hi,
> I have had a problem with the latest fop a few days ago. I found out
> that only
> one fo:flow is permitted in the fo:page-sequence tag, but the Antenna
> House
> FO Parser allows more than one fo:flows! I also think this is the
> standard
> made by the W3C!
Sorry, but I disagree. The content-model of fo:page-sequence is:
(title?,static-content*,flow)
Which is to be read as:
- one or no fo:title
- zero or more fo:static-contents
- exactly one fo:flow
If it had been 'one or more flows', it would have been 'flow+'.
My best guess is that AntennaHouse allows this as a feature... Either
that or the AH developers have grossly misinterpreted the XSL-FO Rec.
>
> But then: What is if i have a region-before, region-body and maybe a
> region-after on one sheet (not a static-context)?!?
I'm sorry, I can't parse this question... Please clarify.
Cheers,
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org