[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:

spaces.xsl
-------------------

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

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

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

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

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

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

</xsl:stylesheet>


spaces.xml
------------------
<?xml version='1.0'?>
<?xml:stylesheet type="text/xsl" href="spaces.xsl" xml:space="preserve"?>
<Screen>
<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  
</text>
</Screen>

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


Current Thread