OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: DOCBOOK-APPS: XSL: markup in <title>

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"
      <title>Using <command>foo</command></title>

This generates the following HTML:

  <title>Using <b>foo</b>

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:when test="$text-only">
        <xsl:value-of select="."/>

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

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC