extra blank lines appear when rendering <textarea> from xslt

Andy Fish

Usenet Archive
Joined
Dec 30, 2002
Messages
605
Reaction score
0
Hi,

Now I have an xsl that generates an html page that allows the user to edit a <textarea>. If he types in this:

frog[cr]toad

(i.e. presses the enter key between the two words) and posts it to the server (ie 6 on winxp) the request value comes out as frog[cr][lf]toad, which seems fair enough.

Next time round I want to display the value so he can edit it. my stylesheet looks like this:

<textarea><xsl:value-of select="@value" /><textarea>

After processing it with xalan 2.4.1, the html looks like this

<textarea>frog
 

Andy Fish

Usenet Archive
Joined
Dec 30, 2002
Messages
605
Reaction score
0
Andy Fish said:
Hi,

Now I have an xsl that generates an html page that allows the user to edit a <textarea>. If he types in this:

frog[cr]toad

(i.e. presses the enter key between the two words) and posts it to the server (ie 6 on winxp) the request value comes out as frog[cr][lf]toad, which seems fair enough.

Next time round I want to display the value so he can edit it. my stylesheet looks like this:

<textarea><xsl:value-of select="@value" /><textarea>

After processing it with xalan 2.4.1, the html looks like this

<textarea>frog
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,208
Messages
3,104,799
Members
249,594
Latest member
henrywalsh

Latest Threads

Top