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] How to remove page breaks between articles in book


I think I will need your help on this. In spite of having used DocBook for some time now, the stock stylesheets have been most sufficient for my needs. I haven't yet really learned XSL.

So, I created a customization layer, my-customizations.xsl and copied into it the template match for d:book from fo/divisions.xsl (ver. 1.78.1) beginning with <xsl:template match="d:book"> and ending with <xsl:template match="d:book/d:titleabbrev"></xsl:template>.

Then I copied the d:article template from fo/component.xsl (ver. 1.78.1) beginning with <xsl:template match="d:article"> through <xsl:template match="d:article/d:titleabbrev"></xsl:template>.

I then removed the lines <fo:page-sequence hyphenate="{$hyphenate}" master-reference="{$master-reference}"> through the closing </fo:page-sequence>.

And then...

Well, I don't know what to do then

> ----- Original Message -----
> From: Bob Stayton
> Sent: 03/18/13 09:18 AM
> To: Michael Broschinsky, docbook-apps@lists.oasis-open.org
> Subject: Re: [docbook-apps] How to remove page breaks between articles in book
> Hi Michael,
> An XSL-FO output file is structured into a series of fo:page-sequences, each 
> with its own designation of a page-master to declare the page specs. The 
> default processing of article is to put each article in its own 
> fo:page-sequence. That always forces a page break between articles.
> To prevent such page breaks, the XSL template matching on book in 
> fo/division.xsl would need to be customized. When it encounters a set of 
> articles, it should start a single fo:page-sequence and apply-templates to 
> all the articles inside that sequence. But since fo:page-sequences cannot 
> be nested, you would also need to customize the template for article in 
> fo/component.xsl to remove its fo:page-sequence.

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