Re: [docbook-apps] How to avoid page breaks after sections: DocBook to ePub

From
Bob Stayton <>
Date
2012-05-12T23:08:23+00:00
ID
00c301cd3094$1cb13140$6600a8c0@pazu
Thread
Re: [docbook-apps] How to avoid page breaks after sections: DocBook to ePub
Hi,

Did you want to prevent such breaks for all 
sections, or only sections within the preface? 

 

Bob Stayton
Sagehill Enterprises


 

 

  
----- Original Message ----- 

  
From: 
  DC Denison 
  

  
To:  
  

  
Sent: Saturday, May 12, 2012 4:33 
AM

  
Subject: [docbook-apps] How to avoid page 
  breaks after sections: DocBook to ePub

  

  
Hi, 

  
I have sections in the Preface in my DocBook document and when I 
  transform to ePub (using ANT in Oxygen), it puts a page break after the first 
  one, and each of the subsequent ones. 

  

  
So the Preface in my ePub consists of four different .html files that are 
  displayed in the ePub ebook as separate pages. Looks bad, and wastes a lot of 
  screen space. 

  

  
I tried putting this line <xsl:param name="refentry.pagebreak" select="0"/> 
   in this template <xsl:template 
  name=”section.heading”> in the docbook.xsl file, but it didn't 
  work.

  

  
I also tried putting that line in my custom .xsl file. Nothing. 
   

  

  
Any ideas? 

  

  
Thanks, DC