- From: Steve K Speicher <sspeiche@us.ibm.com>
- Date: Tue, 5 Dec 2006 07:51:29 -0500
- To: www-forms@w3.org
In looking at test case 8.1.4.b [1] which deals with testing that <xforms:textarea> can not bind to non-simple content (aka complex content) [2], I have some questions. Say a sample data instance (with no associated schema) is: <message>Mixed content data BEFORE body_<body> <name>-Name-</name> <title /> </body>_Mixed content data AFTER body</message> With this textarea: <xf:textarea ref="/message" /> The above works in formsPlayer, X-Smiles and Mozilla XForms. Though this is clearly not simpleContent. Some questions: 1) Is the content model solely determined by the associated type information? For example, the above sample doesn't have a schema and can be inferred to be complex, or more appropriately, mixed content. 2) What should the failure indication be? xforms-binding-exception dispatched, control disabled/hidden, ??? 3) Should the mixed content be allowed, without binding to specific text nodes (see example above)? As stated, this works in multiple implementations (they bind to the first text node) My only concern, with enforcing this restriction, is that I know of quite a few deployed forms that rely on mixed content and the implicit binding to the first text node. For the time being, I'm going to consider the test case 8.1.4.b [1] to be invalid until I hear otherwise. Regards, Steve Speicher [1] http://www.w3.org/MarkUp/Forms/Test/XForms1.0/Edition2/Chapt8/8.1/8.1.4/8.1.4.b.xhtml [2] http://www.w3.org/TR/xforms/slice8.html#ui-processing [3] http://lxr.mozilla.org/seamonkey/source/extensions/xforms/nsXFormsUtils.cpp#762 [4] https://bugzilla.mozilla.org/show_bug.cgi?id=356190
Received on Tuesday, 5 December 2006 12:50:36 UTC