]> granicus.if.org Git - docbook-dsssl/commitdiff
Apply Joe Orton's <tip> patch, modified to be indented. Also show "Tip"
authorMartijn van Beers <lotr@users.sourceforge.net>
Tue, 14 May 2002 19:14:32 +0000 (19:14 +0000)
committerMartijn van Beers <lotr@users.sourceforge.net>
Tue, 14 May 2002 19:14:32 +0000 (19:14 +0000)
in the title.

so if <tip><title>foo</title></tip>, you get
      Tip: foo

contrib/xsl/db2man/db2man.xsl

index e82bcfe7a9d3309e878a692562033b4d471e0149..8e5a8e54ac70e7260dfe65d3c60be7a093ddd485 100644 (file)
   <xsl:apply-templates/>
 </xsl:template>
 
+<xsl:template match="tip">
+  <xsl:text>&#10;.RS&#10;.Sh "Tip</xsl:text>
+    <xsl:if test="title">
+      <xsl:text>: </xsl:text>
+      <xsl:value-of select="title[1]"/>
+    </xsl:if>
+  <xsl:text>"&#10;</xsl:text>
+  <xsl:apply-templates/>
+  <xsl:text>&#10;.RE&#10;</xsl:text>
+</xsl:template> 
+
 <xsl:template match="refsect1">
   <xsl:text>&#10;.SH "</xsl:text>
   <xsl:value-of select="translate(title[1],'abcdefghijklmnopqrstuvwxyz', 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')"/>