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 Mario Madunic <Ma...@newflyer.com> on 2010/01/28 15:18:34 UTC

FO question about two column layout

(Windows XP sp3, FOP 0.95, and Saxon 9)

I'm new to FO, as in setting up the lay-master and page-sequence and am having an issue with columns. I've set up a region-body as the following:

<fo:simple-page-master master-name="serviceOddPage" page-width="8.5in" page-height="11in" margin-top="{$g_MarginTop}" margin-bottom="{$g_MarginBottom}" margin-right="{$g_MarginOutsideOdd}" margin-left="{$g_MarginInsideOdd}">
   <fo:region-body region-name="body" column-count="{$g_Columns}" column-gap="{$g_ColumnGapWidth}" />
</fo:simple-page-master>
<fo:simple-page-master master-name="serviceEvenPage" page-width="8.5in" page-height="11in" margin-top="{$g_MarginTop}" margin-bottom="{$g_MarginBottom}" margin-right="{$g_MarginOutsideEven}" margin-left="{$g_MarginInsideEven}">
   <fo:region-body region-name="body" column-count="{$g_Columns}" column-gap="{$g_ColumnGapWidth}" />
</fo:simple-page-master>
<fo:page-sequence-master master-name="seviceSectionPagesSequence">
   <fo:repeatable-page-master-alternatives>
      <fo:conditional-page-master-reference odd-or-even="odd" master-reference="serviceOddPage" />
      <fo:conditional-page-master-reference odd-or-even="even" master-reference="serviceEvenPage" />
   </fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>

The content I'm using is just a test string wrapped in a fo:block/fo:inline.

What is happening is the content is bleeding to the right. So the first column's content is bleeding into the left column and the left column is bleeding off the page to the right. How this prevented?

Any help would be appreciated.

Thanks

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries



--------------------------------------------------------------------
Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


RE: FO question about two column layout

Posted by Mario Madunic <Ma...@newflyer.com>.
Thanks Georg for the heads up. And you were right I just had a huge string without any spaces. I thought it wouldn't matter and would automatically break.

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries

-----Original Message-----
From: Georg Datterl [mailto:gdatterl@geneon.de] 
Sent: Thursday, January 28, 2010 8:27 AM
To: fop-users@xmlgraphics.apache.org
Subject: AW: FO question about two column layout

Hi Mario,

Either
* you use a keep-together="always". This is a shortcut that includes keep-together.within-line and prevents line breaks
or
* you don't have a space in your line and so there's no way for fop to insert a line break.

In any case, it doesn't sound like a layout-master related problem. And as far as examples go, much more helpfull on this list would be a sample of the fo code, not the xsl code...

Regards,

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    www.irs-nbg.de
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de
-----Ursprüngliche Nachricht-----
Von: Mario Madunic [mailto:Mario_Madunic@newflyer.com]
Gesendet: Donnerstag, 28. Januar 2010 15:19
An: fop-users@xmlgraphics.apache.org
Betreff: FO question about two column layout

(Windows XP sp3, FOP 0.95, and Saxon 9)

I'm new to FO, as in setting up the lay-master and page-sequence and am having an issue with columns. I've set up a region-body as the following:

<fo:simple-page-master master-name="serviceOddPage" page-width="8.5in" page-height="11in" margin-top="{$g_MarginTop}" margin-bottom="{$g_MarginBottom}" margin-right="{$g_MarginOutsideOdd}" margin-left="{$g_MarginInsideOdd}">
   <fo:region-body region-name="body" column-count="{$g_Columns}" column-gap="{$g_ColumnGapWidth}" /> </fo:simple-page-master> <fo:simple-page-master master-name="serviceEvenPage" page-width="8.5in" page-height="11in" margin-top="{$g_MarginTop}" margin-bottom="{$g_MarginBottom}" margin-right="{$g_MarginOutsideEven}" margin-left="{$g_MarginInsideEven}">
   <fo:region-body region-name="body" column-count="{$g_Columns}" column-gap="{$g_ColumnGapWidth}" /> </fo:simple-page-master> <fo:page-sequence-master master-name="seviceSectionPagesSequence">
   <fo:repeatable-page-master-alternatives>
      <fo:conditional-page-master-reference odd-or-even="odd" master-reference="serviceOddPage" />
      <fo:conditional-page-master-reference odd-or-even="even" master-reference="serviceEvenPage" />
   </fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>

The content I'm using is just a test string wrapped in a fo:block/fo:inline.

What is happening is the content is bleeding to the right. So the first column's content is bleeding into the left column and the left column is bleeding off the page to the right. How this prevented?

Any help would be appreciated.

Thanks

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries



--------------------------------------------------------------------
Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


--------------------------------------------------------------------
Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


AW: FO question about two column layout

Posted by Georg Datterl <gd...@geneon.de>.
Hi Mario,

Either
* you use a keep-together="always". This is a shortcut that includes keep-together.within-line and prevents line breaks
or
* you don't have a space in your line and so there's no way for fop to insert a line break.

In any case, it doesn't sound like a layout-master related problem. And as far as examples go, much more helpfull on this list would be a sample of the fo code, not the xsl code...

Regards,

Georg Datterl

------ Kontakt ------

Georg Datterl

Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg

HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20

www.geneon.de

Weitere Mitglieder der Willmy MediaGroup:

IRS Integrated Realization Services GmbH:    www.irs-nbg.de
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de
-----Ursprüngliche Nachricht-----
Von: Mario Madunic [mailto:Mario_Madunic@newflyer.com]
Gesendet: Donnerstag, 28. Januar 2010 15:19
An: fop-users@xmlgraphics.apache.org
Betreff: FO question about two column layout

(Windows XP sp3, FOP 0.95, and Saxon 9)

I'm new to FO, as in setting up the lay-master and page-sequence and am having an issue with columns. I've set up a region-body as the following:

<fo:simple-page-master master-name="serviceOddPage" page-width="8.5in" page-height="11in" margin-top="{$g_MarginTop}" margin-bottom="{$g_MarginBottom}" margin-right="{$g_MarginOutsideOdd}" margin-left="{$g_MarginInsideOdd}">
   <fo:region-body region-name="body" column-count="{$g_Columns}" column-gap="{$g_ColumnGapWidth}" /> </fo:simple-page-master> <fo:simple-page-master master-name="serviceEvenPage" page-width="8.5in" page-height="11in" margin-top="{$g_MarginTop}" margin-bottom="{$g_MarginBottom}" margin-right="{$g_MarginOutsideEven}" margin-left="{$g_MarginInsideEven}">
   <fo:region-body region-name="body" column-count="{$g_Columns}" column-gap="{$g_ColumnGapWidth}" /> </fo:simple-page-master> <fo:page-sequence-master master-name="seviceSectionPagesSequence">
   <fo:repeatable-page-master-alternatives>
      <fo:conditional-page-master-reference odd-or-even="odd" master-reference="serviceOddPage" />
      <fo:conditional-page-master-reference odd-or-even="even" master-reference="serviceEvenPage" />
   </fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>

The content I'm using is just a test string wrapped in a fo:block/fo:inline.

What is happening is the content is bleeding to the right. So the first column's content is bleeding into the left column and the left column is bleeding off the page to the right. How this prevented?

Any help would be appreciated.

Thanks

Marijan (Mario) Madunic
Publishing Specialist
New Flyer Industries



--------------------------------------------------------------------
Please consider the environment before printing this e-mail.

CONFIDENTIALITY STATEMENT: This communication (and  any and all information or material transmitted with this communication) is confidential, may be privileged and is intended only for the use of the intended recipient. If you are not the intended recipient, any review, retransmission, circulation, distribution, reproduction, conversion to hard copy, copying or other use of this communication, information or material is strictly prohibited and may be illegal. If you received this communication in error or if it is forwarded to you without the express authorization of New Flyer, please notify us immediately by telephone or by return email and permanently delete the communication, information and material from any computer, disk drive, diskette or other storage device or media. Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org