Re: [docbook] [Website] Summary tag

From
Bob Stayton <>
Date
2003-07-15T22:20:04+00:00
ID
Thread
Re: [docbook] [Website] Summary tag
On Wed, Jul 16, 2003 at 12:04:56AM +0200, Oliver Fischer wrote:
> Hi,
> 
> I create my webpages with help of WebsiteDTD and I use on every page the 
> summary tag. The stylesheets generate out of this an description for 
> links in the menu. Nice, but If the text in the summary element contains 
> newlines, the link description will also contain newlines and not needed 
> spaces. At times some browsers misunderstand the generated description 
> and show another char, which is similar to a box.  How can I remove 
> newlines from the summary, so that they don't appear in the link 
> description?

You want to use normalize-space(summary) for the attribute value.
That XSL function replaces any combination of whitespace
with a single space.  This should probably be how the
stylesheets do it anyway, no?

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: