W3C home > Mailing lists > Public > www-xsl-fo@w3.org > August 2011

Re: Two fo:block on the same line

From: Tony Graham <tgraham@mentea.net>
Date: Tue, 9 Aug 2011 10:44:40 +0100 (IST)
Message-ID: <22790.>
To: www-xsl-fo@w3.org
On Sun, August 7, 2011 8:14 pm, Mansour Al Akeel wrote:
> Tony, thank you. But there many things I don't understand here.
>> Two fo:inline-container with fixed width with a fo:leader between them
>> or
>> with 'text-align="justify"' on their containing fo:block.
>> Where do the fo:inline-container go ?

They would both go inside a fo:block.

>> Two absolutely-positioned fo:block-container, e.g. inside another
>> fo:block-container that establishes their ancestor reference area.
> Is this another method ?

Sorry, each paragraph in my previous email was a separate method for the
same result.

>> Use a two-column layout where every other top-level fo:block has
>> 'span="all"' and your second fo:block has 'break-before="column"'
>> (and/or
>> the first one has 'break-after="column"').
> All I needed is a two columns in the first place. One on the left and the
> other on the right.
> But don't know how to get the two column-layout.
> I don't know if I missed something ?

Here's an example of the fo:list-block method:

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
    <fo:simple-page-master master-name="normal" page-width="5in"
      <fo:region-body margin-right="1in" margin-left="1in"
margin-top="1in" margin-bottom="1in"/>
  <fo:page-sequence master-reference="normal" white-space-collapse="true">
    <fo:flow flow-name="xsl-region-body">
      <fo:list-block provisional-distance-between-starts="50% + 5pt"
          <fo:list-item-label end-indent="label-end()">
            <fo:block>This specification defines the features and syntax
for the Extensible Stylesheet Language (XSL), a language for
expressing stylesheets.</fo:block>
          <fo:list-item-body start-indent="body-start()">
            <fo:block>An XSL stylesheet specifies the presentation of a
class of XML documents by describing how an instance of the
class is transformed into an XML document that uses the
formatting vocabulary.</fo:block>


Tony Graham                                   tgraham@mentea.net
Consultant                                 http://www.mentea.net
Mentea       13 Kelly's Bay Beach, Skerries, Co. Dublin, Ireland
 --  --  --  --  --  --  --  --  --  --  --  --  --  --  --  --
    XML, XSL FO and XSLT consulting, training and programming
Received on Tuesday, 9 August 2011 09:45:03 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:36 UTC