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

Problems with spacing

Expand Messages
  • thomas_fast
    Hi all ! Well, I m just a newbien in XSL-FO and I d like to perform a small task : I created a table and inside, there are some cells with the text
    Message 1 of 2 , May 8, 2002
    • 0 Attachment
      Hi all !

      Well, I'm just a newbien in XSL-FO and I'd like to perform a small
      task :
      I created a table and inside, there are some cells with the text
      right-aligned and some others have text left-aligned.

      So when such two cells are close one to another, there's no space
      between them, and the text seems like one piece.

      So I'd like to know how to introduce artificially a space between two
      cells (like a cellspacing or cellpadding in HTML

      I tried settting the space-end or padding-end attributes at the block
      level (inside the cell) but it doesn't work.

      Could anyone help me ?

      Thanks in advance

      Goodnight

      Thomas
    • G. Ken Holman
      ... You could separate the table borders and then introduce a border separation. I hope this helps. ..................... Ken Collapsed borders:
      Message 2 of 2 , May 8, 2002
      • 0 Attachment
        At 2002-05-08 19:15 +0000, thomas_fast wrote:
        >So when such two cells are close one to another, there's no space
        >between them, and the text seems like one piece.
        >
        >So I'd like to know how to introduce artificially a space between two
        >cells (like a cellspacing or cellpadding in HTML

        You could separate the table borders and then introduce a border separation.

        I hope this helps.

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

        <block>Collapsed borders:</block>
        <table border="solid" width="10cm">
        <table-body>
        <table-row>
        <table-cell>
        <block text-align="end">Left Block</block>
        </table-cell>
        <table-cell>
        <block text-align="start">Right Block</block>
        </table-cell>
        </table-row>
        </table-body>
        </table>

        <block>Separated borders:</block>
        <table border="solid" border-collapse="separate" width="10cm"
        border-separation.inline-progression-direction="10pt">
        <table-body>
        <table-row>
        <table-cell>
        <block text-align="end">Left Block</block>
        </table-cell>
        <table-cell>
        <block text-align="start">Right Block</block>
        </table-cell>
        </table-row>
        </table-body>
        </table>



        --
        Upcoming: 3-days XSLT/XPath and/or 2-days XSLFO: June 17-21, 2002
        - : 3-days XML Information Modeling: July 31-August 2, 2002

        G. Ken Holman mailto:gkholman@...
        Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/
        Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995)
        ISBN 0-13-065196-6 Definitive XSLT and XPath
        ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
        ISBN 1-894049-07-1 Practical Formatting Using XSLFO
        XSL/XML/DSSSL/SGML/OmniMark services, books(electronic, printed),
        articles, training(instructor-live,Internet-live,web/CD,licensed)
        Next public training: 2002-05-06,07,09,10,13,15,20,
        - 06-04,07,10,11,13,14,17,20,07-31,08-05,27,30
      Your message has been successfully submitted and would be delivered to recipients shortly.