[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Block (container) - one line at the top and one at the bottom - how to achieve this ?


Subject: Re: [xsl] Block (container) - one line at the top and one at the bottom - how to achieve this ?
From: "Kerry, Richard richard.kerry@xxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 21 Jan 2015 11:52:48 -0000

Thanks Ken, that's exactly what I wanted to know.

>Here you are talking about the page, later you are talking about a
>block container.

Indeed, both are right but I didn't give all the details.  I am working on a
page.  The page is divided into sections, one of which is the container in
question.  It covers roughly the top quarter of the page (noting
bottom="200mm" from my original attempt).

>> display-align="after" in a block-container.
>You've been misinformed if this is all that you've been told ... it
>is only part of the solution.

Indeed - correct but not complete.  It is the key to getting something to go
to the bottom of a box.  But there's the next bit in order to get the extra
spacing.

>Lines are always stacked adjacent to each other, so nothing need be
>said about the first line ... it will be adjacently stacked to the last line.

Blocks (lines) becoming adjacent was the constraint I needed to know how to
(appear to) change.  I could see that something needed to expand but didn't
know how to get that to happen.  The extra container does this.  I've only
picked up FO through working with it a bit from DocBook so I don't necessarily
know these kinds of rules.


The example runs fine in FOP (probably to be expected as it's all standard
stuff).
My file now has something like:

  <fo:block-container
   absolute-position="fixed"
   right="2mm"    left="25mm"   top="30mm"   bottom="230mm"
   display-align="after"
   >

 <fo:block-container  absolute-position="absolute" >
   <fo:block  border="1pt solid red" margin-left="4pt" margin-right="4pt"
margin-top="2pt" margin-bottom="2pt">
  line 1
   </fo:block>
 </fo:block-container >
 <fo:block  border="1pt solid red" margin-left="4pt" margin-right="4pt"
margin-top="2pt" margin-bottom="2pt">
  line 2
 </fo:block>

 </fo:block-container >

I've not used flows as these are guaranteed to be single line text so I don't
need anything to flow.
The framework (layout-masters, page-sequences, etc) is straight out of Docbook
so I've not mentioned it here.

Appreciatively,
Richard.
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
Keywords