You're almost there. All you have to do now is apply a non-default
region-name to the region-after of one of the simple-page-masters. Then
you create a new fo:static-content and set the flow-name to this other
name. Example (uninteresting stuff is left out):

<fo:simple-page-master master-name="first">
  <fo:region-body />
  <fo:region-after region-name="first-region-after"/>
<fo:simple-page-master master-name="rest">
<fo:static-content flow-name="first-region-after"/>
<fo:static-content flow-name="xsl-region-after"/>

> I now have a requirement for a document to have different content in the
> region-after for the first page.
> I've thought about using different <fo:simple-page-master> elements for this
> and also using something like:
> <fo:page-sequence-master master-name="seq" >
>    <fo:repeatable-page-master-alternatives>
>       <fo:conditional-page-master-reference master-name="first"
> page-position="first" />
>       <fo:conditional-page-master-reference master-name="rest"
> page-position="rest" />
>    </fo:repeatable-page-master-alternatives>
> </fo:page-sequence-master>
> From what I can gleam from the examples all this allows me to do is have
> different margins for the first page.  My first page needs to have different
> content in the region-after only for the first page.
> Is there a way of doing this?

Jeremias Märki


Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029

Reply via email to