Loading ...
Sorry, an error occurred while loading the content.

Re: [XSL-FO] Block alignement

Expand Messages
  • Werner Donné
    Antoine, The property for the table-cell is display-align instead of vertical-align . Werner. ... -- Werner Donné -- Re BVBA Engelbeekstraat 8 B-3300
    Message 1 of 2 , Sep 1, 2004
    • 0 Attachment
      Antoine,

      The property for the table-cell is "display-align" instead of
      "vertical-align".

      Werner.

      JAMMES ANTOINE wrote:
      > Hi,
      > I search a way to allign verticaly to blocks with are in different
      > colums of a table.
      > And unfortunately i dont found anny solution could you help me.
      >
      > an fo file exemple :
      >
      > <?xml version="1.0" encoding="iso-8859-1"?>
      > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
      > <fo:layout-master-set>
      > <fo:simple-page-master master-name="simple" page-height="297mm"
      > page-width="210mm" margin-top="14mm" margin-bottom="14mm"
      > margin-left="20mm" margin-right="20mm">
      > <fo:region-body margin-top="25mm" margin-bottom="0mm" />
      > <fo:region-before extent="170mm" />
      > <fo:region-after extent="170mm" />
      > </fo:simple-page-master>
      > </fo:layout-master-set>
      > <fo:page-sequence master-reference="simple" initial-page-number="1">
      > <fo:static-content flow-name="xsl-region-before"/>
      > <fo:static-content flow-name="xsl-region-after" />
      > <fo:flow flow-name="xsl-region-body">
      > <fo:table border="1px solid black" width="100%"
      > font-family="sans-serif" font-size="10pt">
      > <fo:table-column column-number="1" column-width="10mm" />
      > <fo:table-column column-number="2" column-width="160mm" />
      > <fo:table-body>
      > <fo:table-row>
      > <fo:table-cell vertical-align="top">
      > <fo:block font-size="8pt">
      > <fo:inline border-style="solid"
      > border-width="0.5pt" > L1</fo:inline>
      > </fo:block>
      > </fo:table-cell>
      > <fo:table-cell>
      > <fo:block>
      > <fo:table width="100%"
      > font-family="sans-serif" font-size="10pt" border="1px solid black">
      > <fo:table-column column-number="1"
      > column-width="33%" border="1px solid black" />
      > <fo:table-column column-number="2"
      > column-width="12%" border="1px solid black" />
      > <fo:table-column column-number="3"
      > column-width="13%" border="1px solid black"/>
      > <fo:table-column column-number="4"
      > column-width="14%" border="1px solid black"/>
      > <fo:table-column column-number="5"
      > column-width="12%" border="1px solid black"/>
      > <fo:table-column column-number="6"
      > column-width="13%" border="1px solid black"/>
      > <fo:table-header
      > font-weight="normal" text-align="left" >
      > <fo:table-row border="1px solid
      > black">
      > <fo:table-cell
      > text-align="center">
      > <fo:block
      > padding-left="0mm">A</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > text-align="center">
      > <fo:block
      > padding-left="0mm">B</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > text-align="center">
      > <fo:block
      > padding-left="0mm">C</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > text-align="center">
      > <fo:block
      > padding-left="0mm">D</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > text-align="center">
      > <fo:block
      > padding-left="0mm">E</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > text-align="center">
      > <fo:block
      > padding-left="0mm">F</fo:block>
      > </fo:table-cell>
      > </fo:table-row >
      > </fo:table-header>
      > <fo:table-body font-weight="normal"
      > text-align="left">
      > <fo:table-row border="1px solid
      > black">
      > <fo:table-cell
      > text-align="left">
      > <fo:block
      > padding-left="0mm"> IN</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > text-align="center">
      > </fo:table-cell>
      > <fo:table-cell
      > text-align="center">
      > <fo:block
      > padding-left="0mm"> Null</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > text-align="left"></fo:table-cell>
      > <fo:table-cell
      > text-align="center">
      > <fo:block
      > padding-left="0mm"> Null</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > text-align="left">
      > <fo:block
      > padding-left="0mm"> 4, 5,7,8</fo:block>
      > </fo:table-cell>
      > </fo:table-row>
      > <fo:table-row border="1px solid
      > black">
      > <fo:table-cell
      > text-align="left">
      > <fo:block
      > padding-left="0mm"> OUT</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > number-rows-spanned="5" text-align="center">
      > <fo:block
      > padding-left="0mm"> SINGLE</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > number-rows-spanned="5" text-align="center">
      > <fo:block
      > padding-left="0mm"> MASTER</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > number-rows-spanned="2" text-align="center">
      > <fo:block
      > padding-left="0mm"> this is some text and i want to allign the first
      > colum L1 block to L1 in this text</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > number-rows-spanned="5" text-align="center">
      > <fo:block
      > padding-left="0mm"> Null</fo:block>
      > </fo:table-cell>
      > <fo:table-cell
      > text-align="center">
      > <fo:block
      > padding-left="0mm"> 3, 4, 5,7,8</fo:block>
      > </fo:table-cell>
      > </fo:table-row>
      > </fo:table-body>
      > </fo:table>
      > </fo:block>
      > </fo:table-cell>
      > </fo:table-row>
      > </fo:table-body>
      > </fo:table>
      > </fo:flow>
      > </fo:page-sequence>
      > </fo:root>
      >
      >
      > does anybody knows a way to allign verticaly two block or retrieve the
      > absolute vertical position of an item ??
      >
      > Tanks
      >
      >
      >
      >
      > Yahoo! Groups Links
      >
      >
      >
      >
      >
      >

      --
      Werner Donné -- Re BVBA
      Engelbeekstraat 8
      B-3300 Tienen
      tel: (+32) 486 425803 e-mail: werner.donne@...
    • JAMMES ANTOINE
      Hi, I search a way to allign verticaly to blocks with are in different colums of a table. And unfortunately i dont found anny solution could you help me. an fo
      Message 2 of 2 , Sep 1, 2004
      • 0 Attachment
        Hi,
        I search a way to allign verticaly to blocks with are in different
        colums of a table.
        And unfortunately i dont found anny solution could you help me.

        an fo file exemple :

        <?xml version="1.0" encoding="iso-8859-1"?>
        <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
        <fo:layout-master-set>
        <fo:simple-page-master master-name="simple" page-height="297mm"
        page-width="210mm" margin-top="14mm" margin-bottom="14mm"
        margin-left="20mm" margin-right="20mm">
        <fo:region-body margin-top="25mm" margin-bottom="0mm" />
        <fo:region-before extent="170mm" />
        <fo:region-after extent="170mm" />
        </fo:simple-page-master>
        </fo:layout-master-set>
        <fo:page-sequence master-reference="simple" initial-page-number="1">
        <fo:static-content flow-name="xsl-region-before"/>
        <fo:static-content flow-name="xsl-region-after" />
        <fo:flow flow-name="xsl-region-body">
        <fo:table border="1px solid black" width="100%"
        font-family="sans-serif" font-size="10pt">
        <fo:table-column column-number="1" column-width="10mm" />
        <fo:table-column column-number="2" column-width="160mm" />
        <fo:table-body>
        <fo:table-row>
        <fo:table-cell vertical-align="top">
        <fo:block font-size="8pt">
        <fo:inline border-style="solid"
        border-width="0.5pt" > L1</fo:inline>
        </fo:block>
        </fo:table-cell>
        <fo:table-cell>
        <fo:block>
        <fo:table width="100%"
        font-family="sans-serif" font-size="10pt" border="1px solid black">
        <fo:table-column column-number="1"
        column-width="33%" border="1px solid black" />
        <fo:table-column column-number="2"
        column-width="12%" border="1px solid black" />
        <fo:table-column column-number="3"
        column-width="13%" border="1px solid black"/>
        <fo:table-column column-number="4"
        column-width="14%" border="1px solid black"/>
        <fo:table-column column-number="5"
        column-width="12%" border="1px solid black"/>
        <fo:table-column column-number="6"
        column-width="13%" border="1px solid black"/>
        <fo:table-header
        font-weight="normal" text-align="left" >
        <fo:table-row border="1px solid
        black">
        <fo:table-cell
        text-align="center">
        <fo:block
        padding-left="0mm">A</fo:block>
        </fo:table-cell>
        <fo:table-cell
        text-align="center">
        <fo:block
        padding-left="0mm">B</fo:block>
        </fo:table-cell>
        <fo:table-cell
        text-align="center">
        <fo:block
        padding-left="0mm">C</fo:block>
        </fo:table-cell>
        <fo:table-cell
        text-align="center">
        <fo:block
        padding-left="0mm">D</fo:block>
        </fo:table-cell>
        <fo:table-cell
        text-align="center">
        <fo:block
        padding-left="0mm">E</fo:block>
        </fo:table-cell>
        <fo:table-cell
        text-align="center">
        <fo:block
        padding-left="0mm">F</fo:block>
        </fo:table-cell>
        </fo:table-row >
        </fo:table-header>
        <fo:table-body font-weight="normal"
        text-align="left">
        <fo:table-row border="1px solid
        black">
        <fo:table-cell
        text-align="left">
        <fo:block
        padding-left="0mm"> IN</fo:block>
        </fo:table-cell>
        <fo:table-cell
        text-align="center">
        </fo:table-cell>
        <fo:table-cell
        text-align="center">
        <fo:block
        padding-left="0mm"> Null</fo:block>
        </fo:table-cell>
        <fo:table-cell
        text-align="left"></fo:table-cell>
        <fo:table-cell
        text-align="center">
        <fo:block
        padding-left="0mm"> Null</fo:block>
        </fo:table-cell>
        <fo:table-cell
        text-align="left">
        <fo:block
        padding-left="0mm"> 4, 5,7,8</fo:block>
        </fo:table-cell>
        </fo:table-row>
        <fo:table-row border="1px solid
        black">
        <fo:table-cell
        text-align="left">
        <fo:block
        padding-left="0mm"> OUT</fo:block>
        </fo:table-cell>
        <fo:table-cell
        number-rows-spanned="5" text-align="center">
        <fo:block
        padding-left="0mm"> SINGLE</fo:block>
        </fo:table-cell>
        <fo:table-cell
        number-rows-spanned="5" text-align="center">
        <fo:block
        padding-left="0mm"> MASTER</fo:block>
        </fo:table-cell>
        <fo:table-cell
        number-rows-spanned="2" text-align="center">
        <fo:block
        padding-left="0mm"> this is some text and i want to allign the first
        colum L1 block to L1 in this text</fo:block>
        </fo:table-cell>
        <fo:table-cell
        number-rows-spanned="5" text-align="center">
        <fo:block
        padding-left="0mm"> Null</fo:block>
        </fo:table-cell>
        <fo:table-cell
        text-align="center">
        <fo:block
        padding-left="0mm"> 3, 4, 5,7,8</fo:block>
        </fo:table-cell>
        </fo:table-row>
        </fo:table-body>
        </fo:table>
        </fo:block>
        </fo:table-cell>
        </fo:table-row>
        </fo:table-body>
        </fo:table>
        </fo:flow>
        </fo:page-sequence>
        </fo:root>


        does anybody knows a way to allign verticaly two block or retrieve the
        absolute vertical position of an item ??

        Tanks
      Your message has been successfully submitted and would be delivered to recipients shortly.