Hi folks,
I am struggling with the book template (appears in division.xsl). I defined
both the front cover and back cover in my custom.xsl. Then I call the book
template as follows:
<xsl:template match="book">
<xsl:call-template name="front.cover"/>
<xsl:apply-imports/>
<xsl:call-template name="back.cover"/>
</xsl:template>
When I generate a PDF, the back cover is OK, but the front cover has the
following severe problems:
1) No book title is generated on the front cover's background/
2) The cover appears twice before the titlepage-first.
My template for the front coverpage is as follows:
<!--front coverpage layout-->
<xsl:template name="front.cover">
<xsl:variable name="id">
<xsl:call-template name="object.id"/>
</xsl:variable>
<fo:page-sequence master-reference="front-cover">
<fo:flow flow-name="xsl-region-body">
<fo:block/>
</fo:flow>
</fo:page-sequence>
</xsl:template>
Its page sequence is defined as follows:
<xsl:template name="user.pagemasters">
<xsl:param name="front-cover.path">
<xsl:value-of
select="normalize-space(//bookinfo//imageda...@role='frontcover']/@fileref)"/>
</xsl:param>
<fo:simple-page-master master-name="front-cover"
page-width="{$page.width}"
page-height="{$page.height}"
margin-top="0pt"
margin-bottom="0pt"
margin-left="0pt"
margin-right="0pt">
<fo:region-body margin-bottom="0pt"
column-gap="{$column.gap.titlepage}"
column-count="{$column.count.titlepage}"
background-image="url({$front-cover.path})"/>
</fo:simple-page-master>
</xsl:template>
Please, please advise how to solve these issues!!!
Thank you all in advance!!!
Best wishes,
Nancy