Re: [xsl] soft returns/wrap not displaying the way I want

Subject: Re: [xsl] soft returns/wrap not displaying the way I want
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 26 Apr 2001 18:40:56 +0100
                line 3 is longer than 20 characters so a soft return will

By soft return I assume you mean line breaking at a space character.

This is just an HTML question, if the browser is not breaking that
line at the end of the browser window then either it is a <pre>
or the spaces are not spaces but &#160; (&nbsp;) or there is a <span>
or other element with a css white-space: nowrap property.
But in any of these cases the HTMl construct can only be in the output
if your stylesheet is putting it there, and without seeing the
stylesheet how can anyone say?

XSLT has _no_ effect on the rendering. It just writes out HTML (in your
case) and the browser renders the HTMl just as if it were a normal HTML

By default you get two modes in HTML, normal where spaces and line breaks
all count as the same thing, and produce a space or a break at the end
of the window, or nowrap (as in <pre> where spaces don't ever forma line
break, but line break characters do).

If your problem is that you want a third mode, where spaces may possibly
line break but line break characters always line break. Then you can not
do that in HTML so you need to make your XSLT change all linebreak
characters (ie &#10;) to <br/> using a replace template as found in the

But first you need to specify what HTML you are trying to generate.


This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit

 XSL-List info and archive:

Current Thread