W3C home > Mailing lists > Public > www-forms@w3.org > May 2004

Re: Is editing of literal XML supported using XForms?

From: Gary Stewart <gary@deltagreen.co.uk>
Date: Mon, 31 May 2004 13:03:36 +0100 (BST)
To: "Thompson, Bryan B." <BRYAN.B.THOMPSON@saic.com>
Cc: "'www-forms@w3.org'" <www-forms@w3.org>
Message-ID: <Pine.LNX.4.21.0405311254070.30453-100000@riff.albionsoft.com>

> Overall I am quite pleased by the extent to which XForms 1.0 supports
> this activity.  However, I am curious whether or not XForms permits
> the user to edit XML data directly, e.g., in a big old textarea with
> a lot of angle brackets in it.  I see this as useful primarily in a
> fall-back mechanism supporting direct editing of the XML resource when
> there is, as yet, no vocabulary specific XForm for that purpose.  This
> was something that you could do in the HTML FORM, but it seems like the
> use of XPath to identify an updatable binding in the XML instance data
> might make this no longer possible.

I am pretty certain that it doesn't allow direct editing of XML data.
However you can write XML data in a text area which is then escaped to
character data, therefore you could also populate an instance with XML
data by escaping the data you want inserted.

It was also something that I tried to do with XForms (when designing a
form that could add any tags to a HTML "header" space) see
http://lists.w3.org/Archives/Public/www-forms/2004Apr/0006.html.

I'm not sure whether it would be feasible or not to try and make it an
XForms 1.1 requirement, or whether the committee sees it as a useful
feature.

Hope this information was helpful, 

Gary

 
Received on Monday, 31 May 2004 08:04:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:58 GMT