]> granicus.if.org Git - docbook-dsssl/commitdiff
Added call to normalize-space() to cause contents of Abstract to
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Apr 2006 10:19:25 +0000 (10:19 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 5 Apr 2006 10:19:25 +0000 (10:19 +0000)
be normalized when used as the value of the HTML "meta description".

xsl/html/docbook.xsl

index 38fe26ac362e4d4678aedb77e195c8adb72d4c41..80f161afda38856c52e96812ba085cfe517ca50a 100644 (file)
       <meta name="description">
         <xsl:attribute name="content">
           <xsl:for-each select="$info/abstract[1]/*">
-            <xsl:value-of select="."/>
+            <xsl:value-of select="normalize-space(.)"/>
             <xsl:if test="position() &lt; last()">
               <xsl:text> </xsl:text>
             </xsl:if>