This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]