]> granicus.if.org Git - docbook-dsssl/commitdiff
Add named templates for bold-ifying and italicizing stuff. Inspired
authorMartijn van Beers <lotr@users.sourceforge.net>
Tue, 30 Apr 2002 18:12:11 +0000 (18:12 +0000)
committerMartijn van Beers <lotr@users.sourceforge.net>
Tue, 30 Apr 2002 18:12:11 +0000 (18:12 +0000)
by yet another twaugh patch

contrib/xsl/db2man/db2man.xsl

index e28f1d7e7b906878efaed40116ff6b4005f7b303..1f18f0c401e419a7d041f9c7fddfbb7e6e74fc6e 100644 (file)
             encoding="ISO-8859-1"
             indent="no"/>
 
+<!--
+  named templates for bold and italic. call like:
+
+  <xsl:apply-templates name="bold" />
+  or,
+  <xsl:apply-templates name="bold" select="node-you-want" />
+-->
+<xsl:template name="bold">
+  <xsl:text>\fB</xsl:text>
+  <xsl:value-of select="."/>
+  <xsl:text>\fR</xsl:text>
+</xsl:template>
+
+<xsl:template name="italic">
+  <xsl:text>\fI</xsl:text>
+  <xsl:value-of select="."/>
+  <xsl:text>\fR</xsl:text>
+</xsl:template>
 
 <xsl:template match="refsect2">
   <xsl:text>