Re: [xsl] More free-form layouts - side-by-side

Subject: Re: [xsl] More free-form layouts - side-by-side
From: "Kerry, Richard richard.kerry@xxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 23 Jan 2015 12:23:17 -0000
Thanks again for the example, which certainly shows the four blocks being show
in the quadrants as required.



What I'm not at all clear about is the meaning of the
block-progression-dimension attributes.  It's absolutely clear that they are
necessary - if I remove any one of them from the inner block-containers then
its block-container collapses to the height of the text block it contains.  If
I remove it from the outermost one then the whole block as displayed collapses
to the height of any one of the line blocks.



I can't find a clear explanation of what block-progression-dimension does and
what its parameter means.





Also I note that the bottom two block-containers (yellow and purple), with
block-progression-dimension as given, stretch to the bottom of the page, not
its margins.



Using FOP.







<?xml version="1.0" encoding="US-ASCII"?><!--blockcont-split2.fo-->
 <root xmlns="http://www.w3.org/1999/XSL/Format";
        font-family="Times" font-size="20pt">

    <layout-master-set>
      <simple-page-master master-name="frame"
                          page-height="297mm" page-width="210mm"
                          margin-top="15mm" margin-bottom="15mm"
                          margin-left="15mm" margin-right="15mm">
        <region-body region-name="frame-body"/>
      </simple-page-master>
    </layout-master-set>

    <page-sequence master-reference="frame">
      <flow flow-name="frame-body" xmlns="http://www.w3.org/1999/XSL/Format";>
        <!--the outer container sets the frame-->
        <block-container block-progression-dimension="100%"
       border="2pt solid blue">
          <block
      border="2pt solid green"
      >Top left</block>
          <!--the inner containers are within the frame-->
          <block-container absolute-position="absolute"

                           left="50%"
         border="2pt solid red"
         >
            <block
     border="2pt solid green"
     >Top right</block>
          </block-container>
          <block-container absolute-position="absolute"

                           top="50%"
         border="2pt solid purple"
         >
   <block
     border="2pt solid green"
     >Bottom left</block>
          </block-container>
          <block-container absolute-position="absolute"

                           left="50%" top="50%"
         border="2pt solid yellow"
         >
   <block
    border="2pt solid green"
    >Bottom right</block>
    </block-container>
        </block-container>
      </flow>
    </page-sequence>
 </root>



>
>+-------------------------------------+
>|+------------+         +------------+|
>||A           |         |B           ||
>|+------------+         +------------+|
>|                                     |
>|                                     |
>|+------------+         +------------+|
>||C           |         |D           ||
>|+------------+         +------------+|
>+-------------------------------------+

Richard Kerry

BNCS Engineer, SI SOL Telco & Media Vertical Practice

T: +44 (0)20 3618 2669

M: +44 (0)7812 325518

G300, Stadium House, Wood Lane, London, W12 7TA

richard.kerry@xxxxxxxx<mailto:richard.kerry@xxxxxxxx>






This e-mail and the documents attached are confidential and intended solely
for the addressee; it may also be privileged. If you receive this e-mail in
error, please notify the sender immediately and destroy it. As its integrity
cannot be secured on the Internet, the Atos group liability cannot be
triggered for the message content. Although the sender endeavours to maintain
a computer virus-free network, the sender does not warrant that this
transmission is virus-free and will not be liable for any damages resulting
from any virus transmitt



Atos, Atos Consulting, Worldline and Canopy The Open Cloud Company are trading
names used by the Atos group. The following trading entities are registered in
England and Wales: Atos IT Services UK Limited (registered number 01245534),
Atos Consulting Limited (registered number 04312380), Atos Worldline UK
Limited (registered number 08514184) and Canopy The Open Cloud Company Limited
(registration number 08011902). The registered office for each is at 4 Triton
Square, Regentbs Place, London, NW1 3HG.The VAT No. for each is:
GB232327983.

This e-mail and the documents attached are confidential and intended solely
for the addressee, and may contain confidential or privileged information. If
you receive this e-mail in error, you are not authorised to copy, disclose,
use or retain it. Please notify the sender immediately and delete this email
from your systems. As emails may be intercepted, amended or lost, they are not
secure. Atos therefore can accept no liability for any errors or their
content. Although Atos endeavours to maintain a virus-free network, we do not
warrant that this transmission is virus-free and can accept no liability for
any damages resulting from any virus transmitted. The risks are deemed to be
accepted by everyone who communicates with Atos by email.

Current Thread