Next in thread → Next in month →

Re: [docbook-apps] initial.page.number bug?

From
Bob Stayton <>
Date
2006-05-17T19:38:57+00:00
ID
02d001c679e9$8a98d310$6400a8c0@totoro
Thread
Re: [docbook-apps] initial.page.number bug?
Title: KCC Stationery

Hi David,

Take a look at the template named 'force.page.count' in 
fo/pagesetup.xsl.  That's the one that forces the end-on-even which 
generates the blank pages.  Set them all to 'no-force'.

 

Bob Stayton
Sagehill Enterprises
DocBook Consulting


 

 

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

  
From: 
  David White 
  

  
To:  
  

  
Cc: David White 

  
Sent: Wednesday, May 17, 2006 10:18 
  AM

  
Subject: [docbook-apps] 
  initial.page.number bug?

  

  
Hello everyone,

  
 

  
I have the following format in my 
  <book>:

  
<book>

  
<preface/>

  
<preface/>

  
<chapter/>

  
</book>

  
 

  
I want the page numbering to start at "1" 
  with the first <preface>.

  
 

  
However, I have <xsl:param name="double.sided">1</xsl:param> set in order to maintain the flip-flop margin layouts, and as a 
  result I get blank pages after EVERY  
<preface>.

  
I would like the numbering to start at 1 
  and continue through the book w/o extra blank pages while still maintaining 
  double.sided=1 if possible.

  
 

  
Here is my initial.page.number  
  template:

  
 

  

  
<xsl:template name="initial.page.number">

  
<xsl:param name="element" select="local-name(.)"/>

  
<xsl:param name="master-reference" select="''"/>

  
<!-- double-sided output 
  -->

  
<xsl:choose>

  
<xsl:when test="$double.sided != 0">

  
<xsl:choose>

  
<xsl:when test="$element = 'preface' 
  and not(preceding::preface)">1</xsl:when>

  
<xsl:otherwise>auto-odd</xsl:otherwise>

  
</xsl:choose>

  
</xsl:when>

  
</xsl:choose>

  
</xsl:template>

  
 

  
Any suggestions?

  
 

  
David White

  
Ken Cook Co.,

  
Content Management

  


  
http://www.kencook.com

  
tel: 414.847.1322

  
 

  
 

  
 

  
--
No virus found in this outgoing message.
Checked by 
  AVG Free Edition.
Version: 7.1.392 / Virus Database: 268.6.0/341 - Release 
  Date: 5/16/2006
Next in thread → Next in month →