This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
using 2 different fo:page-sequences
- To: "'XSL-List at lists dot mulberrytech dot com'" <XSL-List at lists dot mulberrytech dot com>
- Subject: [xsl] using 2 different fo:page-sequences
- From: "Dunning, John" <JDunning at goSPS dot com>
- Date: Wed, 7 Nov 2001 13:43:05 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
Greetings all,
I am at a loss as to using fo:page-sequences for different content. What I
am trying to do is place scanned images (<image>) on a page with different
properties than text pages. The <image> may occur within the context of a
<para>, but should use the different page-sequence-master.
The xsl is as follows (sorry for so much code):
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="page" page-width="210mm"
page-height="297mm"
margin-top="20mm"
margin-left="25mm"
margin-right="20mm"
margin-bottom="10mm">
<fo:region-body margin-bottom="20mm"
margin-right="0mm"
margin-left="0mm"
margin-top="0mm"/>
<fo:region-after extent="10mm"/>
</fo:simple-page-master>
<fo:simple-page-master master-name="drawing_page" page-width="210mm"
page-height="297mm"
margin-right="0mm"
margin-left="0mm"
margin-top="0mm"
margin-bottom="10mm">
<fo:region-body margin-bottom="00mm"
margin-right="0mm"
margin-left="0mm"
margin-top="0mm"/>
<fo:region-after extent="10mm"/>
</fo:simple-page-master>
<fo:page-sequence-master master-name="A4">
<fo:repeatable-page-master-alternatives>
<fo:conditional-page-master-reference master-name="page"
blank-or-not-blank="any" page-position="any" odd-or-even="any" />
<fo:conditional-page-master-reference master-name="drawing_page"
blank-or-not-blank="any" page-position="any" odd-or-even="any" />
</fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>
</fo:layout-master-set>
<fo:page-sequence master-name="drawing_page">
<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="center" font-size="12pt" color="black">
<fo:page-number/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates select=".//image" />
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-name="{$page_size}">
<fo:static-content flow-name="xsl-region-after">
<fo:block text-align="center"
font-size="12pt"
color="black">
<fo:page-number/>
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<xsl:apply-templates select="//para"/>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
What is produced is one page-sequence with all of the text, then another
page sequence with all of the images, e.g.,
<page-sequence master-name="page">
<para>
<para>
...
</page-sequence>
<page-sequence master-name="drawing_page">
<image>
<image>
...
</page-sequence>
When what I want is:
<page-sequence master-name="page">
<para>
</page-sequence>
<page-sequence master-name="drawing_page">
<image>
</page-sequence>
<page-sequence master-name="page">
<para>
</page-sequence>
<page-sequence master-name="drawing_page">
<image>
</page-sequence>
Any ideas, thoughts, suggestions, etc. welcomed.
Thanks,
John
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list