List Info

Thread: initial.page.number bug?




initial.page.number bug?
user name
2006-05-17 17:18:49
Hello everyone,
 
I have the following format in my <book&gt;:
<book&gt;
<preface/>
<preface/>
<chapter/>
</book&gt;
 
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&nbsp; 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
tel: 414.847.1322
 
 
 
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )