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 Laurent Yaish <la...@gmail.com> on 2008/05/15 18:14:09 UTC
Multi and Single Column layout on same page
Hi Folks,
How would I go about creating a layout that uses mutiple columns on half of
the page (i.e. using region-body column-count) and a single column on the
other half?
I need to content to automatically span the columns so a table wouldn't
work... any ideas?
Is it even possible?
Thanks!
Laurent
Re: AW: Multi and Single Column layout on same page
Posted by Loralon <el...@yahoo.com>.
Thank you Georg,
Works perfect.
Loralon
Georg Datterl wrote:
>
> Hi Loralon,
>
> HTH:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
> xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
> <fo:layout-master-set>
> <fo:simple-page-master master-name="x">
> <fo:region-body column-count="2"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="x">
> <fo:flow flow-name="xsl-region-body" >
> <fo:block background-color="red">
> <fo:inline>spanning 1 column,
> spanning 1 column, spanning 1 column, spanning 1 column, spanning 1
> column, spanning 1 column, spanning 1 column, spanning 1 column, spanning
> 1 column, spanning 1 column, spanning 1 column, spanning 1 column,
> spanning 1 column, spanning 1 column, spanning 1 column, spanning 1
> column</fo:inline>
> </fo:block>
> <fo:block span="all" background-color="green">
> <fo:inline>spanning 2 columns,
> spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2
> columns, spanning 2 columns, spanning 2 columns, spanning 2 columns,
> spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2
> columns, spanning 2 columns, spanning 2 columns, spanning 2 columns,
> spanning 2 columns, spanning 2 columns, spanning 2 columns</fo:inline>
> </fo:block>
> <fo:block background-color="blue">
> <fo:inline>spanning 1 column,
> spanning 1 column, spanning 1 column, spanning 1 column, spanning 1
> column, spanning 1 column, spanning 1 column, spanning 1 column, spanning
> 1 column, spanning 1 column, spanning 1 column, spanning 1 column,
> spanning 1 column, spanning 1 column, spanning 1 column, spanning 1
> column</fo:inline>
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
> <fo:page-sequence master-reference="x"
> fox:disable-column-balancing="true">
> <fo:flow flow-name="xsl-region-body" >
> <fo:block background-color="red">
> <fo:inline>spanning 1 column,
> spanning 1 column, spanning 1 column, spanning 1 column, spanning 1
> column, spanning 1 column, spanning 1 column, spanning 1 column, spanning
> 1 column, spanning 1 column, spanning 1 column, spanning 1 column,
> spanning 1 column, spanning 1 column, spanning 1 column, spanning 1
> column</fo:inline>
> </fo:block>
> <fo:block span="all" background-color="green">
> <fo:inline>spanning 2 columns,
> spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2
> columns, spanning 2 columns, spanning 2 columns, spanning 2 columns,
> spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2
> columns, spanning 2 columns, spanning 2 columns, spanning 2 columns,
> spanning 2 columns, spanning 2 columns, spanning 2 columns</fo:inline>
> </fo:block>
> <fo:block background-color="blue">
> <fo:inline>spanning 1 column,
> spanning 1 column, spanning 1 column, spanning 1 column, spanning 1
> column, spanning 1 column, spanning 1 column, spanning 1 column, spanning
> 1 column, spanning 1 column, spanning 1 column, spanning 1 column,
> spanning 1 column, spanning 1 column, spanning 1 column, spanning 1
> column</fo:inline>
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
>
> Mit freundlichen Grüßen
>
> 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: Loralon [mailto:eloralon@yahoo.com]
> Gesendet: Mittwoch, 6. Oktober 2010 22:17
> An: fop-users@xmlgraphics.apache.org
> Betreff: Re: Multi and Single Column layout on same page
>
>
> Hi again Laurent,
>
> Could you please share your final xslt file for reference as I am trying
> to
> the same thing like you?
>
> Thanks for you attention.
>
> Loralon
>
>
> Loralon wrote:
>>
>> Hi Laurent and Andreas,
>>
>> Andreas would you please share a sample code for this solution?
>>
>> For Laurent: if you successfully tried the approach, would you mind
>> sharing it with me as well?
>>
>> I need such a solution for a document I am working on currently.
>>
>> Loralon
>>
>>
>>
>> Laurent Yaish-3 wrote:
>>>
>>> On Thu, May 15, 2008 at 9:56 AM, Andreas Delmelle <
>>> andreas.delmelle@telenet.be> wrote:
>>>
>>>> On May 15, 2008, at 18:35, Laurent Yaish wrote:
>>>>
>>>> Hi
>>>>
>>>> <snip />
>>>>> Wow... I'm really surprised that the current Recommendation does not
>>>>> even
>>>>> try to address this. It's not an uncommon layout at all. Bummer.
>>>>> It would be nice to be able to set column-count on region-body and
>>>>> then
>>>>> have a column-span property on a fo:block element or something similar
>>>>>
>>>>
>>>> Oh, you /can/ force a block to span all the columns of the region by:
>>>>
>>>> <fo:block span="all">
>>>>
>>>> Limitations: it only has effect for child-blocks of the fo:flow, and
>>>> basically the only two values are 'none' and 'all'.
>>>>
>>>> see: http://www.w3.org/TR/xsl/#span
>>>>
>>>>
>>>>
>>>> HTH!
>>>>
>>>> Andreas
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>>
>>>
>>> Sweet! I'll try it and let you know if it worked.
>>>
>>> Thanks!
>>>
>>> Laurent
>>>
>>>
>>
>>
>
> --
> View this message in context:
> http://old.nabble.com/Multi-and-Single-Column-layout-on-same-page-tp17256938p29900452.html
> Sent from the FOP - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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
>
>
>
--
View this message in context: http://old.nabble.com/Multi-and-Single-Column-layout-on-same-page-tp17256938p29955571.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
AW: Multi and Single Column layout on same page
Posted by Georg Datterl <ge...@geneon.de>.
Hi Loralon,
HTH:
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:fox="http://xmlgraphics.apache.org/fop/extensions">
<fo:layout-master-set>
<fo:simple-page-master master-name="x">
<fo:region-body column-count="2"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="x">
<fo:flow flow-name="xsl-region-body" >
<fo:block background-color="red">
<fo:inline>spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column</fo:inline>
</fo:block>
<fo:block span="all" background-color="green">
<fo:inline>spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns</fo:inline>
</fo:block>
<fo:block background-color="blue">
<fo:inline>spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column</fo:inline>
</fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="x" fox:disable-column-balancing="true">
<fo:flow flow-name="xsl-region-body" >
<fo:block background-color="red">
<fo:inline>spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column</fo:inline>
</fo:block>
<fo:block span="all" background-color="green">
<fo:inline>spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns, spanning 2 columns</fo:inline>
</fo:block>
<fo:block background-color="blue">
<fo:inline>spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column, spanning 1 column</fo:inline>
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
Mit freundlichen Grüßen
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: Loralon [mailto:eloralon@yahoo.com]
Gesendet: Mittwoch, 6. Oktober 2010 22:17
An: fop-users@xmlgraphics.apache.org
Betreff: Re: Multi and Single Column layout on same page
Hi again Laurent,
Could you please share your final xslt file for reference as I am trying to
the same thing like you?
Thanks for you attention.
Loralon
Loralon wrote:
>
> Hi Laurent and Andreas,
>
> Andreas would you please share a sample code for this solution?
>
> For Laurent: if you successfully tried the approach, would you mind
> sharing it with me as well?
>
> I need such a solution for a document I am working on currently.
>
> Loralon
>
>
>
> Laurent Yaish-3 wrote:
>>
>> On Thu, May 15, 2008 at 9:56 AM, Andreas Delmelle <
>> andreas.delmelle@telenet.be> wrote:
>>
>>> On May 15, 2008, at 18:35, Laurent Yaish wrote:
>>>
>>> Hi
>>>
>>> <snip />
>>>> Wow... I'm really surprised that the current Recommendation does not
>>>> even
>>>> try to address this. It's not an uncommon layout at all. Bummer.
>>>> It would be nice to be able to set column-count on region-body and then
>>>> have a column-span property on a fo:block element or something similar
>>>>
>>>
>>> Oh, you /can/ force a block to span all the columns of the region by:
>>>
>>> <fo:block span="all">
>>>
>>> Limitations: it only has effect for child-blocks of the fo:flow, and
>>> basically the only two values are 'none' and 'all'.
>>>
>>> see: http://www.w3.org/TR/xsl/#span
>>>
>>>
>>>
>>> HTH!
>>>
>>> Andreas
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>
>>
>> Sweet! I'll try it and let you know if it worked.
>>
>> Thanks!
>>
>> Laurent
>>
>>
>
>
--
View this message in context: http://old.nabble.com/Multi-and-Single-Column-layout-on-same-page-tp17256938p29900452.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
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
Re: Multi and Single Column layout on same page
Posted by Loralon <el...@yahoo.com>.
Hi again Laurent,
Could you please share your final xslt file for reference as I am trying to
the same thing like you?
Thanks for you attention.
Loralon
Loralon wrote:
>
> Hi Laurent and Andreas,
>
> Andreas would you please share a sample code for this solution?
>
> For Laurent: if you successfully tried the approach, would you mind
> sharing it with me as well?
>
> I need such a solution for a document I am working on currently.
>
> Loralon
>
>
>
> Laurent Yaish-3 wrote:
>>
>> On Thu, May 15, 2008 at 9:56 AM, Andreas Delmelle <
>> andreas.delmelle@telenet.be> wrote:
>>
>>> On May 15, 2008, at 18:35, Laurent Yaish wrote:
>>>
>>> Hi
>>>
>>> <snip />
>>>> Wow... I'm really surprised that the current Recommendation does not
>>>> even
>>>> try to address this. It's not an uncommon layout at all. Bummer.
>>>> It would be nice to be able to set column-count on region-body and then
>>>> have a column-span property on a fo:block element or something similar
>>>>
>>>
>>> Oh, you /can/ force a block to span all the columns of the region by:
>>>
>>> <fo:block span="all">
>>>
>>> Limitations: it only has effect for child-blocks of the fo:flow, and
>>> basically the only two values are 'none' and 'all'.
>>>
>>> see: http://www.w3.org/TR/xsl/#span
>>>
>>>
>>>
>>> HTH!
>>>
>>> Andreas
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>>
>>
>> Sweet! I'll try it and let you know if it worked.
>>
>> Thanks!
>>
>> Laurent
>>
>>
>
>
--
View this message in context: http://old.nabble.com/Multi-and-Single-Column-layout-on-same-page-tp17256938p29900452.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Multi and Single Column layout on same page
Posted by Loralon <el...@yahoo.com>.
Hi Laurent and Andreas,
Andreas would you please share a sample code for this solution?
For Laurent: if you successfully tried the approach, would you mind sharing
it with me as well?
I need such a solution for a document I am working on currently.
Loralon
Laurent Yaish-3 wrote:
>
> On Thu, May 15, 2008 at 9:56 AM, Andreas Delmelle <
> andreas.delmelle@telenet.be> wrote:
>
>> On May 15, 2008, at 18:35, Laurent Yaish wrote:
>>
>> Hi
>>
>> <snip />
>>> Wow... I'm really surprised that the current Recommendation does not
>>> even
>>> try to address this. It's not an uncommon layout at all. Bummer.
>>> It would be nice to be able to set column-count on region-body and then
>>> have a column-span property on a fo:block element or something similar
>>>
>>
>> Oh, you /can/ force a block to span all the columns of the region by:
>>
>> <fo:block span="all">
>>
>> Limitations: it only has effect for child-blocks of the fo:flow, and
>> basically the only two values are 'none' and 'all'.
>>
>> see: http://www.w3.org/TR/xsl/#span
>>
>>
>>
>> HTH!
>>
>> Andreas
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>>
>
> Sweet! I'll try it and let you know if it worked.
>
> Thanks!
>
> Laurent
>
>
--
View this message in context: http://old.nabble.com/Multi-and-Single-Column-layout-on-same-page-tp17256938p29851345.html
Sent from the FOP - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Multi and Single Column layout on same page
Posted by Laurent Yaish <la...@gmail.com>.
On Thu, May 15, 2008 at 9:56 AM, Andreas Delmelle <
andreas.delmelle@telenet.be> wrote:
> On May 15, 2008, at 18:35, Laurent Yaish wrote:
>
> Hi
>
> <snip />
>> Wow... I'm really surprised that the current Recommendation does not even
>> try to address this. It's not an uncommon layout at all. Bummer.
>> It would be nice to be able to set column-count on region-body and then
>> have a column-span property on a fo:block element or something similar
>>
>
> Oh, you /can/ force a block to span all the columns of the region by:
>
> <fo:block span="all">
>
> Limitations: it only has effect for child-blocks of the fo:flow, and
> basically the only two values are 'none' and 'all'.
>
> see: http://www.w3.org/TR/xsl/#span
>
>
>
> HTH!
>
> Andreas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
>
Sweet! I'll try it and let you know if it worked.
Thanks!
Laurent
Re: Multi and Single Column layout on same page
Posted by Andreas Delmelle <an...@telenet.be>.
On May 15, 2008, at 18:35, Laurent Yaish wrote:
Hi
> <snip />
> Wow... I'm really surprised that the current Recommendation does
> not even try to address this. It's not an uncommon layout at all.
> Bummer.
> It would be nice to be able to set column-count on region-body and
> then have a column-span property on a fo:block element or something
> similar
Oh, you /can/ force a block to span all the columns of the region by:
<fo:block span="all">
Limitations: it only has effect for child-blocks of the fo:flow, and
basically the only two values are 'none' and 'all'.
see: http://www.w3.org/TR/xsl/#span
HTH!
Andreas
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org
Re: Multi and Single Column layout on same page
Posted by Laurent Yaish <la...@gmail.com>.
On Thu, May 15, 2008 at 9:22 AM, Jean-François El Fouly <
jean-francois@elfouly.fr> wrote:
> Laurent Yaish a écrit :
>
> Hi Folks,
>
> How would I go about creating a layout that uses mutiple columns on half of
> the page (i.e. using region-body column-count) and a single column on the
> other half?
> I need to content to automatically span the columns so a table wouldn't
> work... any ideas?
> Is it even possible?
>
> Thanks!
>
> I think it's impossible, and to quote a more authorized opinion on this
> very question (Dave Pawson, *XSL-FO,* O'Reilly, 2002, Appendix A) :
>
> <quote>
>
> *Can I create a newspaper-style layout: part of the page with one column,
> the rest with multiple columns?*
>
> Simply put, no. The present Recommendation focuses on content-driven
> layout, not layout-driven formatting. The former simply pours the content
> into predefined areas, the latter dictates where the content should go. It
> is a known issue that I hope will be addressed in the next version of the
> Recommendation.
>
> Presently, you can fix this by using tables for layout, as in HTML, but
> don't expect content to wrap from one fake column to another.
> </quote>
>
>
Wow... I'm really surprised that the current Recommendation does not even
try to address this. It's not an uncommon layout at all. Bummer.
It would be nice to be able to set column-count on region-body and then have
a column-span property on a fo:block element or something similar
Re: Multi and Single Column layout on same page
Posted by Jean-François El Fouly <je...@elfouly.fr>.
Laurent Yaish a écrit :
> Hi Folks,
>
> How would I go about creating a layout that uses mutiple columns on
> half of the page (i.e. using region-body column-count) and a single
> column on the other half?
> I need to content to automatically span the columns so a table
> wouldn't work... any ideas?
> Is it even possible?
>
> Thanks!
I think it's impossible, and to quote a more authorized opinion on this
very question (Dave Pawson, /XSL-FO,/ O'Reilly, 2002, Appendix A) :
<quote>
/Can I create a newspaper-style layout: part of the page with one
column, the rest with multiple columns?/
Simply put, no. The present Recommendation focuses on content-driven
layout, not layout-driven formatting. The former simply pours the
content into predefined areas, the latter dictates where the content
should go. It is a known issue that I hope will be addressed in the
next version of the Recommendation.
Presently, you can fix this by using tables for layout, as in HTML,
but don't expect content to wrap from one fake column to another.
</quote>