On 8 Feb 2010, at 17:15, Bob Stayton wrote: > Hi, > The toc.margin.properties attribute set can be used to add the page break. > See the example near the end of this section:
Thank you Bob. I knew I was missing something. > > 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". I'm sitting here with a copy of the book in front of me wondering why I didn't think to look in the index. I'll just shuffle off feeling vaguely embarrassed right now nic > > Bob Stayton > Sagehill Enterprises > [email protected] > > > ----- Original Message ----- From: "Nic Gibson" <[email protected]> > To: <[email protected]> > Cc: <[email protected]> > 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: [email protected] > For additional commands, e-mail: [email protected] > > > -- 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: [email protected] For additional commands, e-mail: [email protected]
