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

aligning in structure

Expand Messages
  • Daniel
    Plz help, I need to align two texts into a fo:block structure, one to left and the other one to right ... I ve tried something like this:
    Message 1 of 2 , May 8, 2003
    • 0 Attachment
      Plz help,

      I need to align two texts into a fo:block structure, one to left and
      the other one to right ...
      I've tried something like this:
      <fo:block width="7.9cm" height="0.5cm" >
      <fo:inline text-align="left">first</fo:inline>
      <fo:inline text-align="right">second</fo:inline>
      </fo:block>
      , but it didn't worked.
      I do not need two blocks 'cause there'll be 2 lines ... and all this
      stuff i want in one single line ...
      I've found a method for this, using table ... and splitt the cell in
      2 pieces, but i still want another idee.

      10x, das.
    • G. Ken Holman
      ... A common requirement ... addressed using a combination of a leader and justified text alignment. ... A working example is below. Note that when justifying
      Message 2 of 2 , May 10, 2003
      • 0 Attachment
        At 2003-05-08 07:35 +0000, Daniel wrote:
        > I need to align two texts into a fo:block structure, one to left and
        >the other one to right ...

        A common requirement ... addressed using a combination of a leader and
        justified text alignment.

        > I've found a method for this, using table ... and splitt the cell in
        >2 pieces, but i still want another idee.

        A working example is below. Note that when justifying a line, all leaders
        expand uniformly until the line is filled. Since there is only one leader
        on the line, it "pushes" the two pieces of text to the outside edges of the
        line.

        I hope this helps.

        ............. Ken

        <?xml version="1.0" encoding="utf-8"?><!--daniel.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">
        <block>The following is a test:</block>
        <block space-before="1em" text-align-last="justify">
        first<leader/>second
        </block>
        </flow>
        </page-sequence>
        </root>


        --
        Upcoming hands-on courses: Europe (XSLT/XPath): May 5, 2003
        - Europe (XSL-FO): May 16, 2003
        - (XSLT/XPath and/or XSL-FO) North America: June 16-20, 2003

        G. Ken Holman mailto:gkholman@...
        Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
        Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995)
        ISBN 0-13-065196-6 Definitive XSLT and XPath
        ISBN 0-13-140374-5 Definitive XSL-FO
        ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
        ISBN 1-894049-10-1 Practical Formatting Using XSL-FO
        Male Breast Cancer Awareness http://www.CraneSoftwrights.com/f/bc
      Your message has been successfully submitted and would be delivered to recipients shortly.