textarea formatting

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

textarea formatting

Jeremiah Jahn-4
I've got some indented xml that I paste into a textarea. it get
persisted. When I go back to the textarea to edit again, all of the
newlines are skipped.
I normally fix this issue in other webapps by replacing all of the
newlines with <br/> but I don't seem to be able to do that here as it
is no longer valid xml at that point, and escaping them just shows
them. Without using the html editor, how do I format the output to a
textarea control?


thanks


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: textarea formatting

Jeremiah Jahn-4
the data is stored as an attribute

On Wed, Sep 16, 2009 at 7:08 AM, Jeremiah Jahn <[hidden email]> wrote:

> I've got some indented xml that I paste into a textarea. it get
> persisted. When I go back to the textarea to edit again, all of the
> newlines are skipped.
> I normally fix this issue in other webapps by replacing all of the
> newlines with <br/> but I don't seem to be able to do that here as it
> is no longer valid xml at that point, and escaping them just shows
> them. Without using the html editor, how do I format the output to a
> textarea control?
>
>
> thanks
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: textarea formatting

Alessandro Vernet
Administrator
On Sep 16, 2009, at 6:14 AM, Jeremiah Jahn wrote:

> the data is stored as an attribute


There you go: newline characters can't be stored in an attribute. You  
will need to use an element for this. This is done through a process  
called "Attribute-Value Normalization". You can read more about it in  
the XML spec:

http://www.w3.org/TR/REC-xml/#AVNormalize

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/avernet



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: textarea formatting

Jeremiah Jahn-4
So if I read that right, I can use a CDATA marker, but I still haven't yet been able to find a way to actually use one in xforms. If there isn't a way, I'll live, but it sure would be nice.

thanks 


On Sep 16, 2009, at 8:56 PM, Alessandro Vernet wrote:

http://www.w3.org/TR/REC-xml/#AVNormalize



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws