</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