Re: [xep-support] vertical bar in multi-column region

From: Alexander Peshkov (peshkov@renderx.com)
Date: Mon Feb 09 2004 - 05:29:51 PST

  • Next message: svenkataramany@chubb.com: "[xep-support] non collapsing white space character?"

    Hello Andi,

    There was a similar question some time ago on the XSL FO list at
    yahoogroups.com: http://groups.yahoo.com/group/XSL-FO/message/4732
    There was a more complicated requirement: to draw a bar only till the
    end of the actual column content. Let me recite my answer:

    You can draw a rule in SVG and place it into the background of the
    body-region (block with span="all" in this case should have
    background-color="white"). The only shortcoming of this approach is
    that this rule will be drawn through all the page even if columns are
    shorter.
    There is another solution which gives you desired result although it's
    a kind of hack:
     - wrap whole text in a fo:block with left/right borders as thick as
       required rule and left/right padding with the size equal to
       (column-gap width minus rule width) divided by two.
       This way you have desired rule between columns and undesired
       border on either sides.
     - add symmetrical region-start/region-end which have extents as
       wide as region-body margin minus padding of fo:block (calculated
       above). Place in appropriate static contents fo:block-container
       with height="100%" and background-color="white" (it should have
       some non-empty content, i.e. block with empty leader inside).
       These containers will be drawn atop of the side borders and will
       hide them.

    Please find a sample demonstrating both approaches attached.

    Best regards,
    Alexander Peshkov mailto:peshkov@renderx.com
    RenderX

    GA> is there a possibility to achieve a vertical bar between columns in a
    GA> multi-column region?

    GA> Andi
    GA> _________________________________________
    GA> Andreas Geyrecker
    GA> IT und Electronic Publishing
    GA> LexisNexis Verlag ARD ORAC GmbH & Co KG
    GA> Graben 17
    GA> A-1010 Wien
    GA> Tel. +43-1-534 52-1602, Fax +43-1-534 52-147
    GA> a.geyrecker@lexisnexis.at
    GA> http://www.lexisnexis.at

    GA> -------------------
    GA> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    GA> in the body of the message to majordomo@renderx.com from the address
    GA> you are subscribed from.
    GA> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html

    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html





    This archive was generated by hypermail 2.1.5 : Mon Feb 09 2004 - 05:36:56 PST