----- Original Message -----
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?
<!-- 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, 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