Excellent, that worked, thanks.
I also added the following customization to get "Appendix" before the
appendix title in the main body of the document.
<xsl:template match="appendix" mode="object.title.template">
<xsl:choose>
<xsl:when test="string($appendix.autolabel) != 0">
<xsl:call-template name="gentext">
<xsl:with-param name="key">appendix</xsl:with-param>
</xsl:call-template>
<xsl:text> </xsl:text>
<xsl:call-template name="gentext.template">
<xsl:with-param name="context" select="'title-numbered'"/>
<xsl:with-param name="name">
<xsl:call-template name="xpath.location"/>
</xsl:with-param>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="gentext.template">
<xsl:with-param name="context" select="'title-unnumbered'"/>
<xsl:with-param name="name">
<xsl:call-template name="xpath.location"/>
</xsl:with-param>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
2008/4/23 Ron Catterall <[EMAIL PROTECTED]>:
>
>
> The customization I sent previously was for Docbook 5. Following is code
> for DB4.5 Don't know which you need.
>
>
> <!-- set labels for appendices in the table of contents -->
> <xsl:template name="toc.line">
> <xsl:variable name="id">
> <xsl:call-template name="object.id"/>
> </xsl:variable>
>
> <xsl:variable name="label">
> <xsl:choose>
> <xsl:when test="self::appendix">
>
>
> <xsl:call-template name="gentext">
> <xsl:with-param name="key">appendix</xsl:with-param>
> </xsl:call-template>
> <xsl:text> </xsl:text>
> <xsl:apply-templates select="." mode="label.markup"/>
> </xsl:when>
> <xsl:otherwise>
> <xsl:apply-templates select="." mode="label.markup"/>
> </xsl:otherwise>
> </xsl:choose>
> </xsl:variable>
>
> <fo:block text-align-last="justify"
> text-align="justify"
> end-indent="{$toc.indent.width}pt"
> last-line-end-indent="-{$toc.indent.width}pt">
> <fo:inline keep-with-next.within-line="always">
> <fo:basic-link internal-destination="{$id}">
> <xsl:if test="$label != ''">
> <xsl:copy-of select="$label"/>
> <xsl:value-of select="$autotoc.label.separator"/>
> </xsl:if>
> <xsl:apply-templates select="." mode="titleabbrev.markup"/>
> </fo:basic-link>
> </fo:inline>
> <fo:inline keep-together.within-line="always">
> <xsl:text> </xsl:text>
> <fo:leader leader-pattern="dots"
> leader-pattern-width="3pt"
> leader-alignment="reference-area"
> keep-with-next.within-line="always"/>
> <xsl:text> </xsl:text>
> <fo:basic-link internal-destination="{$id}">
> <fo:page-number-citation ref-id="{$id}"/>
> </fo:basic-link>
> </fo:inline>
> </fo:block>
> </xsl:template>
> --
>
>
> Ron Catterall, Phd, DSc email: [EMAIL PROTECTED]
> Prolongacion de Hidalgo 140
> http://catterall.net/
> San Felipe del Agua tel: +52 951 520
> 1821
> Oaxaca 68020 Mexico fax: +1 530 348 8309
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: [EMAIL PROTECTED] For
> additional commands, e-mail: [EMAIL PROTECTED]
--
You did not read the manual
Our tech writer is sad
Locked in the toilet, he is crying
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]