OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] DocBook XSL and page breaks



On 8 Feb 2010, at 15:28, Ron Catterall wrote:

> Nic
> 
> You can do this easily in your customization layer
> 
> <!-- ==================================================================== -->
> <!-- PI to generate a hard page break -->
> <!-- to apply a hard page break do
> <?hard-pagebreak?>, <?page-break?> or <?pb?>
> in the xml text -->
> <xsl:template match="processing-instruction('pb')">
> <fo:block break-before='page'/>
> </xsl:template>     <!-- END match="processing-instruction('pb')"  -->
> <xsl:template match="processing-instruction('page-break')">
> <fo:block break-before='page'/>
> </xsl:template>     <!-- END match="processing-instruction('page-break')"  -->
> <xsl:template match="processing-instruction('hard-pagebreak')">
> <fo:block break-before='page'/>
> </xsl:template>     <!-- END match="processing-instruction('hard-pagebreak')"  -->
> 
> No need to specify 'how much space' and put this anywhere.
> 
> Ron


Hi Ron

Thanks. However, I think I failed to explain myself properly. The problem I have is not 'how do I insert a hard page break?', it is 'given that the toc is generated content, where do I insert the hard break?'. The content is a fairly standard DocBook article with no TOC. We're taking advantage of the automatically generated toc so there isn't anywhere to place the PI in my content!

cheers

nic

--
Nic Gibson
Director, Corbas Consulting Ltd
Editorial and Technical Consultancy and Training
http://www.corbas.co.uk, +44 (0)7718 906817	






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]