Thank you, Jay.
Yes, I am transforming the data from one huge XML file. Did I understand
you correctly? I need to put all XML-data that I use for all pages in
one parent and XML-data for last three pages to the second parent and
then use two different sequences for different page-masters?
Something like this?:
<fo:layout-master-set>
<fo:simple-page-master master-name="firstPage"
page-height="27.8cm"
page-width="21.5cm"
margin-bottom="0.5cm"
margin-top="1.5cm"
margin-left="2cm"
margin-right="2cm" >
<fo:region-body margin-bottom="0.5cm"/>
<fo:region-after extent="1cm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="summaryPage"
page-height="21.5cm"
page-width="27.8cm"
margin-bottom="0.5cm"
margin-top="1.5cm"
margin-left="2cm"
margin-right="2cm" >
<fo:region-before extent="1cm"/>
<fo:region-after extent="1cm"/>
<fo:region-start extent="1cm"/>
<fo:region-end extent="1cm"/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="firstPage">
<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="center">
<fo:page-number />
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates select="report"/>
</fo:flow>
</fo:page-sequence>
fo:page-sequence master-reference="summaryPage">
<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="center">
<fo:page-number />
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates select="report1"/>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
Jay Bryant wrote:
Dear All.
Could you please tell me is there any way to make document which
number of
pages you can not predict and have one layout for all pages and the
second
layout for last three pages. I was looking through tones of examples
how to
use different layouts for different pages but could not find that I
need. Is
it possible to do using fo at all?
Thank you very much for your help.
Hi, Tatiyana,
Depending on what you're doing, it may be possible. Assuming your data
is being transformed from XML, you could write a transform to pour all
the data from one element (and all of its children) into one page
sequence and pour all the data from another element into another page
sequence. I do that all the time, when I pour the contents of chapter
elements into individual page sequences that all use the same page
master and then pour the front matter, index, and appendixes into page
sequences that all use different page masters.
If you provide more detail about the data your trying to turn into a
document, we can probably help you get where you're going.
Jay Bryant
Bryant Communication Services
http://www.bryantcs.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]