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   ( ) 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 ) 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] soft returns/wrap not dis, Keddy, Paul | Thread | RE: [xsl] soft returns/wrap not dis, Keddy, Paul |
RE: Re[2]: [xsl] finding position(), John Wang | Date | RE: [xsl] finding position() of an , John Wang |
Month |