]> granicus.if.org Git - docbook-dsssl/commitdiff
Don't try and generate man pages with spaces in the filename; replace
authorJoe Orton <jorton@redhat.com>
Sat, 15 Mar 2003 08:25:26 +0000 (08:25 +0000)
committerJoe Orton <jorton@redhat.com>
Sat, 15 Mar 2003 08:25:26 +0000 (08:25 +0000)
spaces with underscores.

xsl/manpages/docbook.xsl

index 24a48fa117d87eea142df9e7820d37e5ebb474cf..a40c523a5a7e74fb74df85ed1ec22652da7d9020 100644 (file)
     </xsl:choose>
   </xsl:variable>
 
+  <!-- replace spaces with underscores in the filename -->
+  <xsl:variable name="filename">
+    <xsl:call-template name="replace-string">
+      <xsl:with-param name="content"
+                      select="concat(normalize-space ($name), '.', $section)"/>
+      <xsl:with-param name="replace" select="' '"/>
+      <xsl:with-param name="with" select="'_'"/>
+    </xsl:call-template>
+  </xsl:variable>
+
   <xsl:call-template name="write.text.chunk">
-    <xsl:with-param name="filename"
-                   select="concat(normalize-space ($name), '.', $section)"/>
+    <xsl:with-param name="filename" select="$filename"/>
     <xsl:with-param name="content">
       <xsl:text>.\"Generated by db2man.xsl. Don't modify this, modify the source.
 .de Sh \" Subsection