#54 xep bookmarks and whitespace in titles

closed-fixed
nobody
XSL (122)
5
2002-07-04
2002-03-14
David Cramer
No

Adding a few normalize-space()s. If you have:

<title>

Lost
in Whitespace

</title>

Then you'll end up with a big gap in
between the component name and the title in the bookmark:

+
Chapter 1 Lost in Whitespace

cvs diff xep.xsl (in directory
C:\XML\docbookcvs\xsl\fo\)
Index:
xep.xsl
===================================================================
RCS
file: /cvsroot/docbook/xsl/fo/xep.xsl,v
retrieving
revision 1.11
diff -r1.11 xep.xsl
82c82
< <xsl:value-of
select="translate($bookmark-label, $a-dia, $a-asc)"/>
---
>
<xsl:value-of select="normalize-space(translate($bookmark-
label, $a-dia, $a-asc))"/>
90c90
< <xsl:value-of
select="translate($bookmark-label, $a-dia, $a-asc)"/>
---
>
<xsl:value-of select="normalize-space(translate($bookmark-
label, $a-dia, $a-asc))"/>

*****CVS exited normally with code
1*****

Discussion

  • David Cramer
    David Cramer
    2002-03-14

    fo/xep.xsl

     
    Attachments
  • Norman Walsh
    Norman Walsh
    2002-07-04

    • status: open --> closed-fixed
     
  • Norman Walsh
    Norman Walsh
    2002-07-04

    Logged In: YES
    user_id=81663

    That's significant whitespace, but Ok.