]> granicus.if.org Git - docbook-dsssl/commitdiff
fix refsect2 titles
authorMartijn van Beers <lotr@users.sourceforge.net>
Fri, 10 May 2002 15:20:42 +0000 (15:20 +0000)
committerMartijn van Beers <lotr@users.sourceforge.net>
Fri, 10 May 2002 15:20:42 +0000 (15:20 +0000)
contrib/xsl/db2man/db2man.xsl
contrib/xsl/db2man/lists.xsl

index 4052a0a67d95ef36be1c29b2f1519a07d7223e11..648bd3a8fff2d293accc5e0f93a2ea7e8523d263 100644 (file)
@@ -39,7 +39,7 @@
 
 <xsl:template match="refsect2">
   <xsl:text>&#10;.Sh "</xsl:text>
-  <xsl:value-of select="substring-before(title[1],' ')"/>
+  <xsl:value-of select="title[1]"/>
   <xsl:text>"&#10;</xsl:text>
   <xsl:apply-templates/>
 </xsl:template>
index b28299b9d4fc86365d779db273ca81520253a820..cd389d7b34c825cd1c2bfcc9594fb6a78382e276 100644 (file)
@@ -3,13 +3,14 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 version='1.0'>
 
-<xsl:template match="para|remark" mode="list">
+<xsl:template match="para|simpara|remark" mode="list">
   <xsl:variable name="foo">
     <xsl:apply-templates/>
   </xsl:variable>
   <xsl:value-of select="normalize-space($foo)"/>
   <xsl:text>&#10;</xsl:text>
-  <xsl:if test="following-sibling::para or following-sibling::remark">
+  <xsl:if test="following-sibling::para or following-sibling::simpara or
+               following-sibling::remark">
     <!-- Make sure multiple paragraphs within a list item don't -->
     <!-- merge together.                                        -->
     <xsl:text>&#10;</xsl:text>