Hi,

I am producing pdf book with xsltproc and xep. While viewing a pdf i noticed acrobat Reader showing the numbers 1,2,iii,iv,v...,1,2,3 .

I think that there is a case where the function for page numbering is missing a case for the very first two pages.


------- altered function from fo/pagesetup.xsl ---------------------
<xsl:template name="page.number.format">
  <xsl:param name="element" select="local-name(.)"/>
  <xsl:param name="master-reference" select="''"/>


  <xsl:choose>
 <!--  ++ return Roman numbering for  titlepages -->
    <xsl:when test="$element = 'book'">i</xsl:when>
 <!--                                         -->
    <xsl:when test="$element = 'toc' and self::book">i</xsl:when>
    <xsl:when test="$element = 'preface'">i</xsl:when>
    <xsl:when test="$element = 'dedication'">i</xsl:when>
    <xsl:when test="$element = 'acknowledgements'">i</xsl:when>
    <xsl:otherwise>1</xsl:otherwise>
  </xsl:choose>
</xsl:template>


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to