W3C home > Mailing lists > Public > public-xformsusers@w3.org > January 2016

Re: Future wish: MIPS in <instance> element

From: Alain Couthures <alain.couthures@agencexml.com>
Date: Wed, 27 Jan 2016 08:09:58 +0100
To: Steven Pemberton <steven.pemberton@cwi.nl>, public-xformsusers@w3.org
Message-ID: <56A86D46.4030304@agencexml.com>

While I am now working on XSLTForms v2, I am considering the simplest 
way to insert XForms elements into HTML5 tags. It appears that browsers 
support non-HTML elements such as "<xforms-instance>" (no namespace) 
without problems, even for the CSS engine, which allows, for example, to 
disable display for them and their content at loading time. But, 
browsers don't support letter cases for tags and attributes names. The 
only way to preserve them in instance data is to wrap them into an HTML 
script element with a type value not being "text/javascript", of course.

Even in the XML context, for instances data not always being XML but 
JSON or CSV or anything else, I think it should be better to wrap data 
with an element, <xforms:data> for example, with a mediatype attribute.


Le 20/01/2016 14:42, Steven Pemberton a écrit :
> I wish we'd thought of this earlier. Just recording it here as a 
> future wish.
> <instance>
>     <address>
>         <street1/>
>         <street2/>
>         <city/>
>         <state/>
>         <postcode/>
>         <country/>
>     </address>
>     <bind ref="street1" required="true()"/>
>     <bind ref="state" required="../country='USA'"/>
> </instance>
> Then you have to use instance('name') far less with big forms.
> Steven
Received on Wednesday, 27 January 2016 07:10:33 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:45 UTC