Ok, i want to make a head, a body and a foot part of my site! So i have
to
implement a xsl-region-before, xsl-region-body and xsl-region-after part
on
my site! You understand?!?
But i can only implement a <fo:flow flow-name="xsl-region-before"> or a
<fo:flow flow-name="xsl-region-body"> but not both! So what should i do in
that case?!
-----------------------------------------------------------------------------------
Here's how (a trimmed down portion of one of my XSL files that I use to
produce a data dictionary):
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
<fo:layout-master-set>
<fo:simple-page-master master-name="first">
<fo:region-body region-name="first" />
</fo:simple-page-master>
<fo:simple-page-master master-name="contents">
<fo:region-body region-name="contents" margin-top="1in"
margin-bottom="1in" />
<fo:region-before region-name="header-contents" extent="1in" />
<fo:region-after region-name="footer-contents" extent="1in" />
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="first">
<fo:flow flow-name="first">
<fo:block xsl:use-attribute-sets="doctitle">
<!-- Title and legal page blocks go here -->
</fo:block>
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="contents"
initial-page-number="1" format="i">
<fo:static-content flow-name="header-contents">
<fo:block xsl:use-attribute-sets="body">
<!-- header stuff goes here -->
</fo:block>
</fo:static-content>
<fo:static-content flow-name="footer-contents">
<fo:block xsl:use-attribute-sets="footercenter">
<!-- footer stuff goes here -->
</fo:block>
</fo:static-content>
<fo:flow flow-name="contents">
<fo:block xsl:use-attribute-sets="pagetitle1" id="contents">
Contents
</fo:block>
<fo:block xsl:use-attribute-sets="contents1">
<fox:outline internal-destination="contents">
<fox:label>Contents</fox:label>
</fox:outline>
<xsl:apply-templates mode="contents" />
</fo:flow>
</fo:page-sequence>
<fo:page-sequence master-reference="main" initial-page-number="1">
<fo:static-content flow-name="header-main">
<fo:block xsl:use-attribute-sets="body">
<!-- header stuff goes here -->
</fo:block>
</fo:static-content>
<fo:static-content flow-name="footer-main">
<fo:block xsl:use-attribute-sets="footercenter">
<!-- footer stuff goes here -->
</fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body">
<!-- build the bookmarks -->
<xsl:apply-templates mode="bookmark" />
<!-- build the body content -->
<xsl:apply-templates />
</fo:flow>
</fo:page-sequence>
<!-- and so on -->
Notice the ways names map from the simple-page-masters to the named
portions within page-sequences.
HTH
Jay Bryant
Bryant Communication Services
(presently consulting at Synergistic Solution Technologies)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]