You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Stephen Clarke <an...@longusername.worldonline.co.uk> on 2002/02/15 09:50:20 UTC

A brain teaser

Hi,

How can I put a special heading on page one, and a normal heading on all
subsequent pages. The special heading is a superset of the normal heading
and contains multiple lines. The subsequent heading contains only the first
line of the group.

In all other respects, the text should flow as normal.

--
Best,
Stephen Clarke


Re: A brain teaser

Posted by Magnus Sjöberg <ma...@secode.com>.
Here's a skeleton version of the page structure:

<fo:layout-master-set>
 <fo:simple-page-master master-name="frontpage">
 </fo:simple-page-master>        
 <fo:simple-page-master master-name="documentpage">
 </fo:simple-page-master>
        
 <fo:page-sequence-master master-name="document">
  <fo:single-page-master-reference master-name="frontpage"/>
  <fo:repeatable-page-master-reference
master-name="documentpage"/>
 </fo:page-sequence-master>
</fo:layout-master-set>

<fo:page-sequence master-name="frontpage">
 <fo:static-content flow-name="xsl-region-before">
 <!-- Your special header here -->
 </fo:static-content>      
</fo:page-sequence>
      
<fo:page-sequence master-name="documentpage">        
 <fo:static-content flow-name="xsl-region-before">
 <!-- Your not-so special header here -->
 </fo:static-content>			
</fo:page-sequence>

Note that it is n o t complete but just shows how the
general structure could look.
Assuming your header data is contained in some xml, all you
need to do is to create xsl:templates to extract all rows
from it into the 'frontpage' xsl-region-before flow and
another template to extract only the first line into
'documentpage' xsl-region before flow.

But that part I leave to you.

Cheers!

///Magnus

Stephen Clarke wrote:
> 
> Hi,
> 
> How can I put a special heading on page one, and a normal heading on all
> subsequent pages. The special heading is a superset of the normal heading
> and contains multiple lines. The subsequent heading contains only the first
> line of the group.
> 
> In all other respects, the text should flow as normal.
> 
> --
> Best,
> Stephen Clarke

-- 

Secode - Total Internet Security
Magnus Sjöberg
Research And Development

email: magnus.sjoberg@secode.com
cell: +46 709 150 710
POTS: +46 8 564 875 05
http://www.secode.com

Internet is to be a safe area for business, transactions and
information exchange