← Prev in month
← Prev in thread
Next in thread →
Next in month →
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
← Prev in month
← Prev in thread
Next in thread →
Next in month →