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

soft returns/wrap not displaying the way I want

Subject: soft returns/wrap not displaying the way I want
From: "Keddy, Paul" <Paul.Keddy@xxxxxxxxxxxxx>
Date: Thu, 26 Apr 2001 10:31:12 -0300
textarea wrap not working
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

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.