]> granicus.if.org Git - docbook-dsssl/commitdiff
First part of fix for #628888:
authorJoe Orton <jorton@redhat.com>
Sun, 5 Jan 2003 22:20:23 +0000 (22:20 +0000)
committerJoe Orton <jorton@redhat.com>
Sun, 5 Jan 2003 22:20:23 +0000 (22:20 +0000)
- don't use generic italic/bold templates for things like <replaceable>,
since <replaceable> can contain other elements, but the templates discard
any non-PCDATA content.

xsl/manpages/docbook.xsl

index db16b32cc68454e0df366bfcc790588ee0a856c7..d9e995ca4bae08399b0f83ccbe926a9e6e7743a9 100644 (file)
 
 <xsl:template match="refentry/refentryinfo"></xsl:template>
 
-<xsl:template match="option">
-  <xsl:apply-templates mode="bold" select="."/>
-</xsl:template>
-
-<xsl:template match="replaceable|varname">
-  <xsl:apply-templates mode="italic" select="."/>
-</xsl:template>
-
 <xsl:template match="filename">
   <xsl:text>&#10;.FN </xsl:text><xsl:apply-templates/>
 </xsl:template>
 
-<xsl:template match="userinput">
-  <xsl:apply-templates mode="bold" select="."/>
-</xsl:template>
-
 <xsl:template match="informalexample|screen">
   <xsl:text>&#10;.IP&#10;.nf&#10;</xsl:text>
   <xsl:apply-templates/>
   <xsl:text>&#10;.fi&#10;</xsl:text>
 </xsl:template>
 
-<xsl:template match="envar">
-  <xsl:apply-templates mode="bold" select="."/>
-</xsl:template>
-
-<xsl:template match="filename">
-  <xsl:apply-templates mode="italic" select="."/>
+<xsl:template match="filename|replaceable|varname">
+  <xsl:text>\fI</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text>
 </xsl:template>
 
-<xsl:template match="errorcode|constant|type">
-  <xsl:apply-templates mode="bold" select="."/>
+<xsl:template match="option|userinput|envar|errorcode|constant|type">
+  <xsl:text>\fB</xsl:text><xsl:apply-templates/><xsl:text>\fR</xsl:text>
 </xsl:template>
 
 <xsl:template match="quote">