This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
page break
- From: ~ion~ <vnhu38f93 at subdimension dot com>
- To: docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Mon, 16 Dec 2002 20:59:58 +0000
- Subject: DOCBOOK-APPS: page break
I wanted this output in the XSL-FO:
<fo:block break-before="page">
blah blah blah
</fo:block>
But I didn't know how to put this into my customisation layer so
I tried:
<!-- page-break support -->
<xsl:template match="processing-instruction('fo-page-break')">
<fo:block break-before="page"/>
</xsl:template>
And then inserted
<?fo-page-break?>
Into the DocBook document where a page break was required.
I don't like this because it is dirty and produces:
<fo:block break-before="page"/>
<fo:block>
blah blah blah
</fo:block>
Which is sub-optimal because ideally I think the page break should
be in the fo block that wraps the text that should appear on a new
page. <-- Does this reasoning make sense or does it not matter?
Is it OK to do this albeit quite dirty?
Can anyone think of any side-effects that might occur?
~io~