W3C home > Mailing lists > Public > www-xsl-fo@w3.org > September 2003

Re: add a text block at 3rd page of a sequence

From: David Tolpin <dvd@davidashen.net>
Date: Wed, 3 Sep 2003 17:33:49 +0500 (AMST)
Message-Id: <200309031233.h83CXnA3010779@adat.davidashen.net>
To: crupp@umc-web.de
Cc: www-xsl-fo@w3.org

> i am really sorry - i have written more than 2000 lines in my .fo script 
> in the last 3 days (and nights) but i just don't understand Ken's and 
> your reply (apart from that script i am still a fo-newbie, btw).
> 
>    <fo:page-sequence-master master-name="seq01">
>      <fo:repeatable-page-master-reference master-reference="chap01"
>            maximum-repeats="2" />
>      <fo:single-page-master-reference master-reference="chap01_PAGE3" />
>      <fo:repeatable-page-master-reference master-reference="chap01" />
>    </fo:page-sequence-master>
> 
> OK - i want to add a block-container in chap01_PAGE3. But how? I can add 
> it to the page-sequence, but not to chap01_PAGE3 itself! But if i add it 
> to the page-sequence, then it would appear on *every* page in seq01.

Below. Untested.

<fo:root>
<fo:layout-master-set>
  <fo:page-sequence-master master-name="seq01">
    <fo:repeatable-page-master-reference master-reference="chap01"
          maximum-repeats="2" />
    <fo:single-page-master-reference master-reference="chap01_PAGE3" />
    <fo:repeatable-page-master-reference master-reference="chap01" />
  </fo:page-sequence-master>

  <fo:simple-page-master master-name="chap01">
    <fo:region-body flow-name="xsl-region-body"/>
    <fo:region-before flow-name="xsl-region-before"/>
  </fo:simple-page-master>

  <fo:simple-page-master master-name="chap01_PAGE3">
    <fo:region-body flow-name="xsl-region-body"/>
    <fo:region-before flow-name="xsl-region-before-page3"/>
  </fo:simple-page-master>
</fo:layout-master-set>

<fo:page-sequence>
  <fo:flow flow-name="xsl-region-body">
    <fo:block>
      Long text flow goes here.
    </fo:block>
  </fo:flow>
  <fo:static-content flow-name="xsl-region-before">
    <fo:block>
      Normal Header.
    </fo:block>
  </fo:static-content>
  <fo:static-content flow-name="xsl-region-before-page3">
    <fo:block>Normal Header.</fo:block>
    <fo:block-container>EXTRA BLOCK CONTAINER FOR PAGE3 GOES HERE</fo:block-container>
  </fo:static-content>
</fo:page-sequence>
</fo:root>


David Tolpin
http://davidashen.net/
Received on Wednesday, 3 September 2003 08:35:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT