[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [docbook-apps] Re: 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 CatterallTo: docbook-apps@lists.oasis-open.orgCc: bobs@sagehill.netSent: Wednesday, August 06, 2008 12:44 PMSubject: xref titles in italics for sections etc.Apologies I sent this earlier without a title linecan't get this to work, there is an unused parameter, $xrefstyle, is something missing in the template?<!-- Make all cross reference titles appear in italic -->
<!-- by default chapters are italicised but all sect cross references are not in italic -->
<!-- p.247 of 3rd. ed. and p.271 of 4th. ed. of "DocBook XSL The Complete Guide" -->
<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, DScemail: ron@catterall.net
Prolongacion de Hidalgo 140http://catterall.net/
San Felipe del Aguatel: +52 951 520 1821
Oaxaca 68020Mexico fax: +1 530 348 8309
--
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]