<xsl:when test="$title != ''">
<xsl:copy-of select="$title"/>
</xsl:when>
+ <xsl:when test="$purpose = 'xref'">
+ <xsl:apply-templates select="." mode="titleabbrev.markup">
+ <xsl:with-param name="allow-anchors" select="$allow-anchors"/>
+ <xsl:with-param name="verbose" select="$verbose"/>
+ </xsl:apply-templates>
+ </xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="." mode="title.markup">
<xsl:with-param name="allow-anchors" select="$allow-anchors"/>
<xsl:param name="title"/>
<xsl:choose>
- <!-- FIXME: what about the case where titleabbrev is inside the info? -->
- <xsl:when test="$purpose = 'xref' and titleabbrev">
- <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+ <xsl:when test="$purpose = 'xref'">
+ <xsl:copy-of select="$title"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$title"/>
<xsl:param name="title"/>
<xsl:choose>
- <!-- FIXME: what about the case where titleabbrev is inside the info? -->
- <xsl:when test="$purpose = 'xref' and titleabbrev">
- <xsl:apply-templates select="." mode="titleabbrev.markup"/>
+ <xsl:when test="$purpose = 'xref'">
+ <xsl:copy-of select="$title"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="$title"/>