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: Docbook footer




Hey guys!

I am a newie in Docbook. But i'm trying and developing nearly everyday.
At this moment i am trying to get the Register of Companies in the
footer. Can somebody help me with an example! I already read an
description. I get the theory but the experience is still missing!

Here is what i tried, but didn't work:

<!-- footer config-->
<!-- template to overrule the default footer content. -->
<xsl:template name="footer.content">
<xsl:param name="pageclass" select="''"/>
<xsl:param name="sequence" select="''"/>
<xsl:param name="position" select="''"/>
<xsl:param name="gentext-key" select="''"/>

<!-- sequence can be odd, even, first, blank -->
<!-- position can be left, center, right -->
<fo:block>
<xsl:choose>
<xsl:when test="$sequence = 'blank'">
<!-- nothing -->
</xsl:when>

<xsl:when test="$position='r1c1'">
<!-- Same for odd, even, empty, and blank sequences -->
<xsl:if test="$pageclass != 'titlepage'">
<fo:text>companyname
</fo:text>
</xsl:if>
</xsl:when>
<xsl:when test="$position='r1c2'">
<!-- Same for odd, even, empty, and blank sequences -->
<xsl:if test="$pageclass != 'titlepage'">
<fo:text>address
</fo:text>
</xsl:if>
</xsl:when>
<xsl:when test="$position='r1c3'">
<!-- Same for odd, even, empty, and blank sequences -->
<xsl:if test="$pageclass != 'titlepage'">
<fo:text>manager
</fo:text>
</xsl:if>
</xsl:when>

<xsl:when test="$position='center'">
<!-- nothing for empty and blank sequences -->
</xsl:when>

<xsl:when test="$position='right'">
<!-- Same for odd, even, empty, and blank sequences -->
</xsl:when>

<xsl:when test="$sequence = 'first'">
<!-- nothing for first pages -->
</xsl:when>

<xsl:when test="$sequence = 'blank'">
<!-- nothing for blank pages -->
</xsl:when>
</xsl:choose>
</fo:block>

</xsl:template>
<xsl:variable name="candidate">
<fo:table xsl:use-attribute-sets="footer.table.properties">
<xsl:call-template name="foot.sep.rule">
<xsl:with-param name="pageclass" select="$pageclass"/>
<xsl:with-param name="sequence" select="$sequence"/>
<xsl:with-param name="gentext-key" select="$gentext-key"/>
</xsl:call-template>
<fo:table-column column-number="1">
<xsl:attribute name="column-width">
<xsl:text>proportional-column-width(</xsl:text>
<xsl:call-template name="header.footer.width">
<xsl:with-param name="location">footer</xsl:with-param>
<xsl:with-param name="position" select="$column1"/>
</xsl:call-template>
<xsl:text>)</xsl:text>
</xsl:attribute>
</fo:table-column>
<fo:table-column column-number="2">
<xsl:attribute name="column-width">
<xsl:text>proportional-column-width(</xsl:text>
<xsl:call-template name="header.footer.width">
<xsl:with-param name="location">footer</xsl:with-param>
<xsl:with-param name="position" select="2"/>
</xsl:call-template>
<xsl:text>)</xsl:text>
</xsl:attribute>
</fo:table-column>
<fo:table-column column-number="3">
<xsl:attribute name="column-width">
<xsl:text>proportional-column-width(</xsl:text>
<xsl:call-template name="header.footer.width">
<xsl:with-param name="location">footer</xsl:with-param>
<xsl:with-param name="position" select="$column3"/>
</xsl:call-template>
<xsl:text>)</xsl:text>
</xsl:attribute>
</fo:table-column>

<fo:table-body>
<fo:table-row>
<xsl:attribute name="block-progression-dimension.minimum">
<xsl:value-of select="$footer.table.height"/>
</xsl:attribute>
<fo:table-cell text-align="left"
                          display-align="after">
<xsl:if test="$fop.extensions = 0">
<xsl:attribute name="relative-align">baseline</xsl:attribute>
</xsl:if>
<fo:block>
<xsl:call-template name="footer.content">
<xsl:with-param name="position" select="'r1c1'"/>
</xsl:call-template>
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="center"
                          display-align="after">
<xsl:if test="$fop.extensions = 0">
<xsl:attribute name="relative-align">baseline</xsl:attribute>
</xsl:if>
<fo:block>
<xsl:call-template name="footer.content">
<xsl:with-param name="position" select="'r1c2'"/>
</xsl:call-template>
</fo:block>
</fo:table-cell>
<fo:table-cell text-align="right"
                          display-align="after">
<xsl:if test="$fop.extensions = 0">
<xsl:attribute name="relative-align">baseline</xsl:attribute>
</xsl:if>
<fo:block>
<xsl:call-template name="footer.content">
<xsl:with-param name="position" select="'r1c3'"/>
</xsl:call-template>
</fo:block>
</fo:table-cell>
</fo:table-row>
</fo:table-body>
</fo:table>
</xsl:variable>

best regards Lwam

-- 
Gruß Lwam Berhane



punkt.de GmbH               TYPO3-Internet-Dienstleistungen-Beratung
Kaiserallee 13a             Tel.: 0721 9109-0  Fax: -100
76133 Karlsruhe             info@punkt.de    http://punkt.de/
AG Mannheim 108285          Gf: Jürgen Egeling



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