]> granicus.if.org Git - apache/commitdiff
respect the replace-space-with attribute in the toc
authorAndré Malo <nd@apache.org>
Fri, 18 Apr 2003 01:59:44 +0000 (01:59 +0000)
committerAndré Malo <nd@apache.org>
Fri, 18 Apr 2003 01:59:44 +0000 (01:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@99427 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/chm/hhc.xsl

index 39e744546338dbfc162e8cbef69850311d077213..0ca6616d2bdf5374404effc14dd6376ba8232ca7 100644 (file)
               <xsl:if test="@type='section'">&lt;</xsl:if>
               <xsl:value-of select="name"/>
               <xsl:if test="@type='section'">&gt;</xsl:if>
-              <xsl:text> </xsl:text>
+              <xsl:choose>
+                <xsl:when test="$messages/message[@name='directive']/@replace-space-with">
+                  <xsl:value-of select="$messages/message[@name='directive']/@replace-space-with"/>
+                </xsl:when>
+                <xsl:otherwise>
+                  <xsl:text> </xsl:text>
+                </xsl:otherwise>
+              </xsl:choose>
               <xsl:value-of select="$messages/message[@name='directive']"/>
             </xsl:with-param>
           </xsl:call-template>
               <xsl:if test="@type='section'">&lt;</xsl:if>
               <xsl:value-of select="name"/>
               <xsl:if test="@type='section'">&gt;</xsl:if>
-              <xsl:text> </xsl:text>
+              <xsl:choose>
+                <xsl:when test="$messages/message[@name='directive']/@replace-space-with">
+                  <xsl:value-of select="$messages/message[@name='directive']/@replace-space-with"/>
+                </xsl:when>
+                <xsl:otherwise>
+                  <xsl:text> </xsl:text>
+                </xsl:otherwise>
+              </xsl:choose>
               <xsl:value-of select="$messages/message[@name='directive']"/>
             </xsl:with-param>
           </xsl:call-template>