This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
XSL: markup in <title>
- To: docbook-apps at lists dot oasis-open dot org
- Subject: DOCBOOK-APPS: XSL: markup in <title>
- From: Jon Willeke <willeke at intersys dot com>
- Date: Wed, 26 Jul 2000 15:24:00 -0400
I'm using DocBook XML 4.1 with version 1.16 of the XSL DocBook Stylesheets.
I've got a document that looks not entirely unlike this:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE article
PUBLIC "-//OASIS//DTD DocBook XML V4.1//EN"
"http://www.oasis-open.org/docbook/xml/4.1/docbookx.dtd">
<article>
<articleinfo>
<title>Using <command>foo</command></title>
</articleinfo>
<para>...</para>
</article>
This generates the following HTML:
<title>Using <b>foo</b>
</title>
I don't want the <b> tag in the title. It looks like the stylesheets were
designed not to show markup in the title, because there's a parameter
called "text-only" that's passed all around common.xsl, starting in
docbook.xsl with a value of true(). Here's the template that generates the
title text (common.xsl:817-827):
<xsl:template match="title" mode="title.content">
<xsl:param name="text-only" select="false()"/>
<xsl:choose>
<xsl:when test="$text-only">
<xsl:value-of select="."/>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
If I hard-code a true() here, I get the desired result. I can't figure out
why true() isn't passed in correctly from docbook.xsl:101.
--
Jon Willeke, Quality Engineer
InterSystems Corp.
One Memorial Drive, Cambridge, MA 02142