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 John Temple <jo...@virtuant.com> on 2001/05/18 18:35:52 UTC

multiple flows how in the heck do you get it to work?

I need a page with I would think multiple flow sections.
region-before needs data pulled from an XML doc displayed on all pages.
region-after needs data pulled from an XML doc displayed on all pages as
well.
region-body needs data pulled from an XML doc displayed and can continue
running through the XML doc using multiple pages if needed.

                   page 1
              *****************
region-before * data from XML *
              *****************
region-body   * data from XML *
              *****************
region-after  * data from XML *
              *****************

                   page 2
              *****************
region-before *   reprinted   *
              *****************
region-body   * cont. from p1 *
              *****************
region-after  *   reprinted   *
              *****************

Any help at all will be much appreciated.

John Temple
Virtuant - www.virtuant.com
Systems Engineer
johnt@virtuant.com
(770)557-4900 ext.227 Office
(770)633-5033 Cell


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


Re: Alignment of the footer

Posted by Hoang Nam <nn...@yahoo.fr>.
Thank you for your response !  I think you took the "footnote" for the
footer which is the text of the of the "xsl-region-body", like this :

        <fo:static-content flow-name="xsl-region-after">
                <fo:block> ...text of the  footer....    </fo:block>
        </fo:static-content>

I would like the text is align at the bottom  of the Xsl-Region-Body as that
is done in WORD but the property "display-align" has not  implemented in FOP
yet.

Thanks alot for all suggestion !

Nam

----- Original Message -----
From: "Keiron Liddle" <ke...@aftexsw.com>
To: <fo...@xml.apache.org>
Sent: Monday, May 21, 2001 11:33 AM
Subject: Re: Alignment of the footer


>
> I think you will find that this statement  in the spec at 6.10.1.3
> "The conditionally generated areas borrow space in the
> block-progression-dimension (this is "height" when the writing-mode is
> "lr-tb") within the region-reference-area, at the expense of the
> main-reference-area."
>
> A footnote is a conditionally generated area.
>
> This indicates that the footnote is at the end of the main reference area
> (ie. the body area) and has no interaction with the region-after.
>
> On Fri, 18 May 2001 19:10:37 Hoang Nam wrote:
> > Hello all,
> >
> > I would like the footer is align on the bottom of the Region-After  and
> > not
> > on the top (by default) :
> >
> > **********Region-after *****
> >
> >                 text  footer.....
> > *************************
> >
> > That is done in Word .
> >
> > I tried the property "display-align=bottom" but this property is not
> > implemented in FOP . Does somebody know how to do it with FOP ?
> >
> > Thank you !
> >
> > Nam
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


Re: Alignment of the footer

Posted by Keiron Liddle <ke...@aftexsw.com>.
I think you will find that this statement  in the spec at 6.10.1.3
"The conditionally generated areas borrow space in the
block-progression-dimension (this is "height" when the writing-mode is
"lr-tb") within the region-reference-area, at the expense of the
main-reference-area."

A footnote is a conditionally generated area.

This indicates that the footnote is at the end of the main reference area
(ie. the body area) and has no interaction with the region-after.

On Fri, 18 May 2001 19:10:37 Hoang Nam wrote:
> Hello all,
> 
> I would like the footer is align on the bottom of the Region-After  and
> not
> on the top (by default) :
> 
> **********Region-after *****
> 
>                 text  footer.....
> *************************
> 
> That is done in Word .
> 
> I tried the property "display-align=bottom" but this property is not
> implemented in FOP . Does somebody know how to do it with FOP ?
> 
> Thank you !
> 
> Nam


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


Alignment of the footer

Posted by Hoang Nam <nn...@yahoo.fr>.
Hello all,

I would like the footer is align on the bottom of the Region-After  and not
on the top (by default) :

**********Region-after *****

                text  footer.....
*************************

That is done in Word .

I tried the property "display-align=bottom" but this property is not
implemented in FOP . Does somebody know how to do it with FOP ?

Thank you !

Nam


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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


Re: multiple flows how in the heck do you get it to work?

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
On Monday 21 May 2001 14:31, John Temple wrote:
> I did however have to do some fancy foot work to get the info at the bottom
> of the page to look right.  I don't understand why but when ever I used the
> region-after the info was deleted during the build.  I could get it back if
> I set the extent to like 5.0in but then it was in the center of the page.
> So I setup a few crazy setting, I am not sure if it is correct but it
> appears to work ok.  Here is a sample if you feel like it, take a look.
>
> Simple Page Master Settings:
>       <fo:simple-page-master master-name="BillofLading"
>                 page-width="21.8cm"
>                 page-height="27.9cm"
>                 margin-top="0.25cm"
>                 margin-bottom="0.5cm"
>                 margin-left="1.5cm"
>                 margin-right="1.5cm">
>          <fo:region-body margin-top="7.5cm" margin-bottom="6.0cm"/>
>          <fo:region-before extent="40.0cm"/>
>          <fo:region-after extent="11.5cm"/>
>       </fo:simple-page-master>
>
> Empty block to push the info to the bottom of the page:
> <fo:block line-height="13.2cm">&#160;</fo:block>

OK, as I look at our existing code, you are testing it. :-) Because the 
settings are a bit crazy. Although I think I can see what's happening, and 
why it could work and look plausible with simple examples.

Let's consider just the heights. If we have, say, 20.0cm set as the 
page-height, and 2cm for both the margin-top and the margin-bottom, we have 
16.0cm available for the regions.

Whatever space (height) you want for the fo:region-before and the 
fo:region-after, which is specified using "extent" (which you have), borrows 
from that height which is available from the regions. So if you set extent on 
the fo:region-before to 2cm, and on the fo:region-after to 4cm, you are 
saying that you wish the fo:region-body to have no more than 10.0cm. In order 
to do that, the margin-top on the fo:region-body must equal or exceed the 
extent on the fo:region-before, and correspondingly for margin-bottom and 
fo:region-after.

There is a good discussion of this in the spec, with useful diagrams.

Hope this helps.

Regards,
Arved

-- 
Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Halifax, Nova Scotia
Wireless * B2B * J2EE * XML

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


RE: multiple flows how in the heck do you get it to work?

Posted by John Temple <jo...@virtuant.com>.
Arved,
Thank you for your help.  When I refered to flow I was speaking of the tag
fo:flow.  I understood that region-before and region-after was the same
across all pages, assuming you didn't set up seperate page-masters.  The
problem I was having was in the belief that inorder to pull data from an XML
doc you had to use fo:flow with in your template, I thought that because the
tag said static-content that you couldn't pull from an XML doc.  So after
reading your reply and finding out that both fo:flow and fo:static-content
are the same for the most part.  I tried it with static-content and it
worked for me.
I did however have to do some fancy foot work to get the info at the bottom
of the page to look right.  I don't understand why but when ever I used the
region-after the info was deleted during the build.  I could get it back if
I set the extent to like 5.0in but then it was in the center of the page.
So I setup a few crazy setting, I am not sure if it is correct but it
appears to work ok.  Here is a sample if you feel like it, take a look.

Simple Page Master Settings:
      <fo:simple-page-master master-name="BillofLading"
                page-width="21.8cm"
                page-height="27.9cm"
                margin-top="0.25cm"
                margin-bottom="0.5cm"
                margin-left="1.5cm"
                margin-right="1.5cm">
         <fo:region-body margin-top="7.5cm" margin-bottom="6.0cm"/>
         <fo:region-before extent="40.0cm"/>
         <fo:region-after extent="11.5cm"/>
      </fo:simple-page-master>

Empty block to push the info to the bottom of the page:
<fo:block line-height="13.2cm">&#160;</fo:block>


-----Original Message-----
From: Arved Sandstrom [mailto:Arved_37@chebucto.ns.ca]
Sent: Friday, May 18, 2001 5:31 PM
To: fop-dev@xml.apache.org
Subject: Re: multiple flows how in the heck do you get it to work?


Hi, John

Regardless of the source of the content, it is the case that the data in
region-before is the same across all pages, and likewise for region-after.
Is that not right? That's what it sounds like you're saying.

In which case you tackle the region-body with an fo:flow, and the
region-before and region-after with an fo:static-content each. It can be
confusing because both fo:flows and fo:staic-content's are lumped together
as "flows", terminologically speaking, and I'm not sure what you mean when
you say "flow".

In case I understand you correctly, we have many examples of more or less
what you want to do.

Regards,
Arved Sandstrom

At 12:35 PM 5/18/01 -0400, John Temple wrote:
>I need a page with I would think multiple flow sections.
>region-before needs data pulled from an XML doc displayed on all pages.
>region-after needs data pulled from an XML doc displayed on all pages as
>well.
>region-body needs data pulled from an XML doc displayed and can continue
>running through the XML doc using multiple pages if needed.
>
>                   page 1
>              *****************
>region-before * data from XML *
>              *****************
>region-body   * data from XML *
>              *****************
>region-after  * data from XML *
>              *****************
>
>                   page 2
>              *****************
>region-before *   reprinted   *
>              *****************
>region-body   * cont. from p1 *
>              *****************
>region-after  *   reprinted   *
>              *****************
>
>Any help at all will be much appreciated.
>
>John Temple
>Virtuant - www.virtuant.com
>Systems Engineer
>johnt@virtuant.com
>(770)557-4900 ext.227 Office
>(770)633-5033 Cell
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
>For additional commands, email: fop-dev-help@xml.apache.org
>
>
Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


---------------------------------------------------------------------
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


Re: multiple flows how in the heck do you get it to work?

Posted by Arved Sandstrom <Ar...@chebucto.ns.ca>.
Hi, John

Regardless of the source of the content, it is the case that the data in 
region-before is the same across all pages, and likewise for region-after. 
Is that not right? That's what it sounds like you're saying.

In which case you tackle the region-body with an fo:flow, and the 
region-before and region-after with an fo:static-content each. It can be 
confusing because both fo:flows and fo:staic-content's are lumped together 
as "flows", terminologically speaking, and I'm not sure what you mean when 
you say "flow".

In case I understand you correctly, we have many examples of more or less 
what you want to do.

Regards,
Arved Sandstrom

At 12:35 PM 5/18/01 -0400, John Temple wrote:
>I need a page with I would think multiple flow sections.
>region-before needs data pulled from an XML doc displayed on all pages.
>region-after needs data pulled from an XML doc displayed on all pages as
>well.
>region-body needs data pulled from an XML doc displayed and can continue
>running through the XML doc using multiple pages if needed.
>
>                   page 1
>              *****************
>region-before * data from XML *
>              *****************
>region-body   * data from XML *
>              *****************
>region-after  * data from XML *
>              *****************
>
>                   page 2
>              *****************
>region-before *   reprinted   *
>              *****************
>region-body   * cont. from p1 *
>              *****************
>region-after  *   reprinted   *
>              *****************
>
>Any help at all will be much appreciated.
>
>John Temple
>Virtuant - www.virtuant.com
>Systems Engineer
>johnt@virtuant.com
>(770)557-4900 ext.227 Office
>(770)633-5033 Cell
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
>For additional commands, email: fop-dev-help@xml.apache.org
>
>
Fairly Senior Software Type
e-plicity (http://www.e-plicity.com)
Wireless * B2B * J2EE * XML --- Halifax, Nova Scotia


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