]> granicus.if.org Git - docbook-dsssl/commitdiff
Added normalize-space around to avoid leading whitespace from appearing in the outpu...
authorDavid Cramer <david@thingbag.net>
Wed, 25 Apr 2007 23:05:24 +0000 (23:05 +0000)
committerDavid Cramer <david@thingbag.net>
Wed, 25 Apr 2007 23:05:24 +0000 (23:05 +0000)
xsl/eclipse/eclipse.xsl

index d7aae55c9c91f0b12610c313045f1dacb6920782..317235a5c3e8f64c973b5ed8792a34350070cd56 100644 (file)
@@ -90,7 +90,7 @@
             </xsl:call-template>
           </xsl:variable>
           
-          <toc label="{$title}" topic="{$href}">
+          <toc label="{normalize-space($title)}" topic="{$href}">
             <xsl:apply-templates select="key('id',$rootid)/*" mode="etoc"/>
           </toc>
         </xsl:when>
             </xsl:call-template>
           </xsl:variable>
           
-          <toc label="{$title}" topic="{$href}">
+          <toc label="{normalize-space($title)}" topic="{$href}">
             <xsl:apply-templates select="/*/*" mode="etoc"/>
           </toc>
         </xsl:otherwise>
     </xsl:call-template>
   </xsl:variable>
 
-  <topic label="{$title}" href="{$href}">
+  <topic label="{normalize-space($title)}" href="{$href}">
     <xsl:apply-templates select="part|reference|preface|chapter|bibliography|appendix|article|glossary|section|sect1|sect2|sect3|sect4|sect5|refentry|colophon|bibliodiv|index" mode="etoc"/>
   </topic>