xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Loralon <elora...@yahoo.com>
Subject Re: AW: Multi and Single Column layout on same page
Date Wed, 13 Oct 2010 18:19:43 GMT

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


Mime
View raw message