OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Different values for footer.column.widths on first page and restof document?

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 
Other pages need this value: <xsl:param name="footer.column.widths">1 1 

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 

<xsl:when test="$sequence = 'first'">
<xsl:when test="$double.sided = 0 and $position='left'">
<!-- <fo:page-number/> -->
<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]" 

(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 test="$double.sided = 0 and $position='center'">
<!-- OKL: Insert page number -->

<xsl:when test="$double.sided = 0 and $position='right'">
<!-- OKL: Insert url -->
<xsl:value-of select="'www.xxxxxxxxxx.com'"/>

I am using DocBook 4.5 with XSL/FO version 1.73.2

Thanks for any tips...

Řystein Kleven

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]