[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: Absolute/relative positioning of graphic in XSL-FO
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 23 May 2006 22:49:35 +0200
xsl fo relative position
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@xxxxxxxxxxxxxxxxxxxx
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.