Re: [xsl] different first page using sequence-specifier-repeating

Subject: Re: [xsl] different first page using sequence-specifier-repeating
From: "Nikolai Grigoriev" <grig@xxxxxxxxxxx>
Date: Sat, 3 Feb 2001 04:21:31 +0300

> I've seen lot's of examples such as:
> <fo:layout-master-set>
>     <fo:simple-page-master
>          page-master-name="one"
> ...
> But can anyone give me an example of how to have two different
> page layouts?  I want to have a different page header on the first
> page than the rest of the pages.

Your examples follow the old version of XSL Working Draft (namely, that of April
21, 1999). At that time, what you are asking for was impossible.

The current version of XSL FO (Candidate Recommendation of November 21, 2000)
has means to switch headers put on different pages - you can give custom names
to regions, and than specify these names in flow-name property of a
fo:static-content element (see code below).

Most XSL FO formatters now support the Candidate Recommendation. Which one are
you using? Probably, it needs upgrading. By the way: we have a stylesheet to
convert Apr'99 XSLFO files to XSL CR (available from; also part of XEP2.01 eval
version distribution).


Nikolai Grigoriev

  <!-- even pages -->
  <fo:simple-page-master master-name="left">
    <fo:region-body margin="1in"/>
    <fo:region-before extent="1in" region-name="left-header"/>
  <!-- odd pages -->
  <fo:simple-page-master master-name="right">
    <fo:region-body margin="1in"/>
    <fo:region-before extent="1in" region-name="right-header"/>

  <!-- page sequence master - replaces sequence-specification -->
  <fo:page-sequence-master master-name="alternating">
      <fo:conditional-page-master-reference master-name="left"
      <fo:conditional-page-master-reference master-name="right"/>

<fo:page-sequence master-name="alternating">
  <fo:static-content flow-name="left-header">
    <fo:block text-align="start">Left Header</fo:block>

  <fo:static-content flow-name="right-header">
    <fo:block text-align="end">Right Header</fo:block>


 XSL-List info and archive:

Current Thread