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

Subject: [xsl] soft returns/wrap not displaying the way I want
From: "Keddy, Paul" <Paul.Keddy@xxxxxxxxxxxxx>
Date: Thu, 26 Apr 2001 10:31:12 -0300
I looked at the archives on this but still am having problems.

The text does everything I want it to do inside a textarea tag (ie. hard
returns display fine, soft returns as well, resizing browser window will
adjust the wrapping like i want), but to "display" (ie. outside of the
textarea) it, the soft returns do not work.  I want it to soft wrap exactly
like in the textarea box, problem is that the line just goes on forever and
no softwrap occurs.  (ie. this line doesn't do any softwraps...
<pre><xsl:value-of select="."/></pre>)

I am using IE 5.5.  I've tried attributes wrap="on"  cols="20"
language="XML" etc with the pre tag but no luck.

Any help is appreciated.

code currently using:


<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version='1.0' xmlns:ECF="/behaviors">

<xsl:template match="/">
      <BODY xml:space="preserve"  >
         <xsl:apply-templates select="Screen"/>

<xsl:template match="Screen">
   <xsl:apply-templates />

<xsl:template match="text">
   <textarea name="Screen" style="HEIGHT: 150px; WIDTH: 100%"
      <xsl:value-of select="."/>

   <pre><xsl:value-of select="."/></pre>

<xsl:template match="text()">


<?xml version='1.0'?>
<?xml:stylesheet type="text/xsl" href="spaces.xsl" xml:space="preserve"?>
<text xml:space="preserve">                    line 1
line 2
line 3
line 4
this is line 5 it is reaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalllyyyyyyyyy long and
must have a word wrap around it so it will print fine, hope it works  

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

Current Thread