]> granicus.if.org Git - docbook-dsssl/commitdiff
Patch #530026: suppress whitespace in FOP bookmarks
authorNorman Walsh <ndw@nwalsh.com>
Thu, 4 Jul 2002 17:06:21 +0000 (17:06 +0000)
committerNorman Walsh <ndw@nwalsh.com>
Thu, 4 Jul 2002 17:06:21 +0000 (17:06 +0000)
xsl/fo/fop.xsl

index 545998f35598486a542fbebf3d43b8a3b0a1d88f..9520dfae3821e185f060aa9c017769b91a11b5be 100644 (file)
@@ -45,7 +45,7 @@ translates characters with code>255 back to ASCII.
     <xsl:when test="parent::*">
       <fox:outline internal-destination="{$id}">
         <fox:label>
-          <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
+          <xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
         </fox:label>
         <xsl:apply-templates select="*" mode="fop.outline"/>
       </fox:outline>
@@ -53,7 +53,7 @@ translates characters with code>255 back to ASCII.
     <xsl:otherwise>
       <fox:outline internal-destination="{$id}">
         <fox:label>
-          <xsl:value-of select="translate($bookmark-label, $a-dia, $a-asc)"/>
+          <xsl:value-of select="normalize-space(translate($bookmark-label, $a-dia, $a-asc))"/>
         </fox:label>
       </fox:outline>