Hi,
I have managed to implement many customizations to my FO customization
layer for PDF output, using Bob Stayton's excellent book and this list
as reference.
Now I am stuck on the footers in a doc with <article> as root. I want
the footer content on the first (front) page to be different than the
rest of the pages, and that I accomplished already (see below). But for
the first page footer to be correctly formatted, I need to use different
column widths for it compared to the rest:
First page needs this value: <xsl:param name="footer.column.widths">0 1
0</xsl:param>
Other pages need this value: <xsl:param name="footer.column.widths">1 1
1</xsl:param>
Is it possible to do this? I am a newbie when it comes to xsl templates
and defining parameter values in them, so a bit confused.
This is because I want a legal notice on the front, and name, page
number and url on the rest. It works with these template "hacks", except
I can't figure out how to get the footer column widths into conditional
statements:
<xsl:when test="$sequence = 'first'">
<xsl:choose>
<xsl:when test="$double.sided = 0 and $position='left'">
<!-- <fo:page-number/> -->
</xsl:when>
<xsl:when test="$double.sided = 0 and $position = 'center'">
<fo:block text-align="justify">
<!-- OKL: Insert legal notice in the footer of the first page -->
<xsl:apply-templates select="//legalnotice[1]"
mode="article.titlepage.recto.auto.mode"/>
</fo:block>
</xsl:when>
</xsl:choose>
</xsl:when>
(I have customized the title page xsl to make the above work)
.....
<!-- ********** OKL: Single sided, doc body ***************** -->
<xsl:when test="$double.sided = 0 and $position='left'">
<!-- OKL: Insert company name -->
<xsl:apply-templates select="//corpauthor[1]"/>
</xsl:when>
<xsl:when test="$double.sided = 0 and $position='center'">
<!-- OKL: Insert page number -->
<fo:page-number/>
</xsl:when>
<xsl:when test="$double.sided = 0 and $position='right'">
<!-- OKL: Insert url -->
<xsl:value-of select="'www.xxxxxxxxxx.com'"/>
</xsl:when>
I am using DocBook 4.5 with XSL/FO version 1.73.2
Thanks for any tips...
--
Øystein Kleven
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]