xsl-list
[Top] [All Lists]

Re: [xsl] Absolute/relative positioning of graphic in XSL-FO

2006-05-23 14:00:41
At 2006-05-23 13:23 -0500, Hood, Earl wrote:
I'm trying to figure out if I can have a graphic in an "absolute"
position on a page, but have the graphic automatically move down if
the text preceding it would overlap it.

Yes, by using a block container with an initial size but allowing the size to grow.

Hopefully, the following crude text diagrams illustrate what I am
trying to do:

   ------------------     ------------------     ------------------
  |                  |   |                  |   |                  |
  | Text here        |   | Text here        |   | Text here        |
  |                  |   | Text here        |   | Text here        |
  |                  |   |                  |   | Text here        |
  |  --------------  |   |  --------------  |   | Text here        |
  | | \  /\  /\  / | |   | | \  /\  /\  / | |   | Text here        |
  | |  \/  \/  \/  | |   | |  \/  \/  \/  | |   | Text here        |
  | |  /\  /\  /\  | |   | |  /\  /\  /\  | |   |  --------------  |
  | | /  \/  \/  \ | |   | | /  \/  \/  \ | |   | | \  /\  /\  / | |
  | |/   /\  /\   \| |   | |/   /\  /\   \| |   | |  \/  \/  \/  | |
  |  --------------  |   |  --------------  |   | |  /\  /\  /\  | |
  |                  |   |                  |   | | /  \/  \/  \ | |
  |                  |   |                  |   | |/   /\  /\   \| |
  |                  |   |                  |   |  --------------  |
  |                  |   |                  |   |                  |
  |                  |   |                  |   |                  |
   ------------------     ------------------     ------------------

In the first two, the graphic stays in the same location, but
in the last one, the graphic is moved down so there is no overlap.

The diagrams came through quite well ... well done.

Block containers can grow if you don't set the maximum component of its block-progression-dimension.

The following works in Antenna House, but I see that it does not work in XEP ... I had anticipated it would:

  <block-container block-progression-dimension.minimum="3cm">
    <block>Test1</block>
  </block-container>
  <block>Test 1 end</block>
  <block-container block-progression-dimension.minimum="3cm">
    <block>Test2</block>
    <block>Test2</block>
    <block>Test2</block>
    <block>Test2</block>
    <block>Test2</block>
    <block>Test2</block>
    <block>Test2</block>
    <block>Test2</block>
    <block>Test2</block>
    <block>Test2</block>
  </block-container>
  <block>Test 2 end</block>

In ASCII art the above gives me:


Test1



Test 1 end
Test2
Test2
Test2
Test2
Test2
Test2
Test2
Test2
Test2
Test2
Test2
Test2
Test2
Test2
Test 2 end


I'm not sure what changes would be needed for XEP.

I hope this helps.

. . . . . . . . . . Ken

--
Registration open for XSLT/XSL-FO training: Wash.,DC 2006-06-12/16
Also for XSL-FO/XSLT training:    Minneapolis, MN 2006-07-31/08-04
Also for XML/XSLT/XSL-FO/UBL training: Varo,Denmark 06-09-25/10-06
World-wide corporate, govt. & user group UBL, XSL, & XML training.
G. Ken Holman                 mailto:gkholman(_at_)CraneSoftwrights(_dot_)com
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
Male Cancer Awareness Aug'05  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>