This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
PROPOSAL: Putting text on blank pages
- From: Jens Stavnstrup <js at ddre dot dk>
- To: docbook-apps at lists dot oasis-open dot org
- Cc: Norman Walsh <ndw at nwalsh dot com>
- Date: Mon, 25 Nov 2002 07:35:56 +0100 (CET)
- Subject: DOCBOOK-APPS: PROPOSAL: Putting text on blank pages
Norm,
In my working environment, it is often required that blank pages are
not so blank. I.e. we frequently put the following line "This page is
intentionally left blank." on blank pages.
Here is the required modification to the stylesheets, if you choose to
add it:
Add the following attributes to the fo:region-body element in
the simple-page-master called blank:
region-name="blank-body"
display-align="center"
Create the following global parameters:
<xsl:param name="static.on.blank.page" select="0"/>
<xsl:param name="text.on.blank.page"
select="This page is intentionally left blank."/>
Put the following template in fo/pagesetup.xsl, and call it from
the static header generating template, just like you call the new template
footnote-separator.
<xsl:template name="blank.static.page">
<xsl:if test="$static.on.blank.page=1">
<fo:static-content flow-name="blank-body">
<fo:block text-align="center">
<xsl:value-of select="$text.on.blank.page"/>
</fo:block>
</fo:static-content>
</xsl:if>
</xsl:template>
BTW, this recipe works just fine in XEP, but not in FOP. I have therefore
filed a bug report.
Regards,
Jens