[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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

Subject: Re: soft returns/wrap not displaying the way I want
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 26 Apr 2001 18:40:56 +0100
soft return character
                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
file. 

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
faq.

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

David







_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.