xref titles in italics for sections etc.First question: are you using the docbook 5 namespaced stylesheets? If so, the element names in the match need to have the namespace prefix.
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net ----- Original Message -----
From: Ron Catterall
To:
docbook-apps@lists.oasis-open.org Cc:
bobs@sagehill.net Sent: Wednesday, August 06, 2008 12:44 PM
Subject: xref titles in italics for sections etc.
Apologies I sent this earlier without a title line
can't get this to work, there is an unused parameter, $xrefstyle, is something missing in the template?
<xsl:template match="sect1|sect2|sect3|sect4|sect5|section" mode="insert.title.markup">
<xsl:param name="purpose"/>
<xsl:param name="xrefstyle"/>
<xsl:param name="title"/>
<xsl:choose>
<xsl:when test="$purpose='xref'">
<fo:inline font-style="italic">
<xsl:copy-of select="$title"/>
</fo:inline>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$title"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
--
Ron Catterall, Phd, DSc email:
ron@catterall.net Prolongacion de Hidalgo 140
http://catterall.net/ San Felipe del Agua tel: +52 951 520 1821
Oaxaca 68020 Mexico fax: +1 530 348 8309