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


Hi,
The toc.margin.properties attribute set can be used to add the page break.  See the 
example near the end of this section:

http://www.sagehill.net/docbookxsl/PrintToc.html#PageMargins

A link to this page is found in the index of the book under "table of contents, page 
break".

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Nic Gibson" <nicg@corbas.net>
To: <ron@catterall.net>
Cc: <docbook-apps@lists.oasis-open.org>
Sent: Monday, February 08, 2010 7:38 AM
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





---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org





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