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

Re: Breaking the flow?

Subject: Re: Breaking the flow?
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 05 Jun 2001 10:55:03 -0400
breaking the flow
At 01/06/05 11:48 +0200, Gustaf Liljegren wrote:
The symptom is that the manager block appears at different places depending
on how many items the agenda has. If there is just a few, the manager is
near the middle of the page, and if there's plenty it may appear at a second
page!

What I want to do is to be able to relate the manager block to the bottom of
the page instead of to the above block. Is this possible?

How about using an absolute or fixed positioned block-container object?


I've attached a three-page example below where the manager appears in the same position on each page regardless of the length of the flow. I've set the top edge of the container to the same position on each page. Note that I also used a single page page-sequence so that if the agenda flowed to the second page the rendering agent would report an overflow of the page-sequence.

I tested it using the evaluation RenderX (my environment adds the fo: namespace prefix as an intermediate step to running RenderX (a temporary RenderX situation; not required for other tools)).

I hope this helps.

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


<?xml version="1.0" encoding="utf-8"?><!--gustaf.fo--> <root xmlns="http://www.w3.org/1999/XSL/Format" font-family="Times" font-size="25pt">

<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"
      border="dotted"
      margin-top="13mm" margin-bottom="13mm"/>
  </simple-page-master>
  <page-sequence-master master-name="frame-one-page-only">
    <single-page-master-reference master-name="frame"/>
  </page-sequence-master>
</layout-master-set>

<page-sequence master-name="frame-one-page-only">
  <flow flow-name="frame-body" text-align="center">

<block space-before="1cm">This is to certify:</block>

    <block font-style="italic" font-size="50pt"
           space-before="3cm">Gustaf</block>

    <block space-before="3cm"
           space-after="1cm">Has completed:</block>

    <block>Agenda 1</block>
    <block>Agenda 2</block>
    <block>Agenda 3</block>
    <block>Agenda 4</block>
    <block>Agenda 5</block>

    <block-container absolute-position="fixed"
                     top="220mm">
      <block>Manager:
        <inline font-style="italic">wife</inline>
      </block>
    </block-container>
  </flow>
</page-sequence>

<page-sequence master-name="frame-one-page-only">
  <flow flow-name="frame-body" text-align="center">

<block space-before="1cm">This is to certify:</block>

    <block font-style="italic" font-size="50pt"
           space-before="3cm">Gustaf</block>

    <block space-before="3cm"
           space-after="1cm">Has completed:</block>

    <block>Agenda 1</block>
    <block>Agenda 2</block>

    <block-container absolute-position="fixed"
                     top="220mm">
      <block>Manager:
        <inline font-style="italic">wife</inline>
      </block>
    </block-container>
  </flow>
</page-sequence>

<page-sequence master-name="frame-one-page-only">
  <flow flow-name="frame-body" text-align="center">

<block space-before="1cm">This is to certify:</block>

    <block font-style="italic" font-size="50pt"
           space-before="3cm">Gustaf</block>

    <block space-before="3cm"
           space-after="1cm">Has completed:</block>

    <block>Agenda 1</block>
    <block>Agenda 2</block>
    <block>Agenda 3</block>
    <block>Agenda 4</block>


<block-container absolute-position="fixed" top="220mm"> <block>Manager: <inline font-style="italic">wife</inline> </block> </block-container> </flow> </page-sequence>

</root>


-- 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 (Fax:-0995) Web site: XSL/XML/DSSSL/SGML/OmniMark services, training, products. Book: Practical Transformation Using XSLT and XPath ISBN 1-894049-06-3 Article: What is XSLT? http://www.xml.com/pub/2000/08/holman/index.html Next public instructor-led training: 2001-06-18,06-21,08-12,08-13,09-19

Training Blitz: 3-days XSLT/XPath, 2-days XSLFO in Ottawa 2001-06-18/22


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.