Subject: [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: Tue, 20 Jan 2015 13:45:16 -0000 |
I'm trying to lay out a page which will eventually become a title page for some other documents. One feature I want to achieve is a box containing two lines of text, one at the top and one at the bottom. A bit like this : +---------- | first line | | | | second line +--------- I've been advised that I can do this using display-align="after" in a block-container. I can get the bounding box using a block-container, but I only seem to get the two lines together, either at the top or the bottom. If I use display-align="before", ie something like : <fo:block-container absolute-position="fixed" right="2mm" left="25mm" top="30mm" bottom="200mm" display-align="before" > <fo:block > first line </fo:block> <fo:block > second line </fo:block> </fo:block-container > (I've removed everything apart from the alignments - there are actually absolute position attributes and a few others) I get: +---------- | first line | second line | | | +--------- If I use the same but display-align="after", I get : +---------- | | | | first line | second line +--------- The description of display-align="after" says "The after-edge of the allocation-rectangle of the last child area is placed coincident with the after-edge of the content-rectangle of the reference-area." It doesn't say anything about the non-last child areas (ie "first line") so I expected these to be at the top of the block-container, with just the last one being at the bottom. Am I missing something ? Misunderstanding ? Any suggestions how to get this to work ? Regards, Richard. [Blue line] 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> [Atos logo] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] reference value from XML , Jirka Kosek jirka@xx | Thread | Re: [xsl] Block (container) - one l, G. Ken Holman g.ken. |
Re: [xsl] reference value from XML , Stephen Ingram sbing | Date | Re: [xsl] Block (container) - one l, G. Ken Holman g.ken. |
Month |