W3C home > Mailing lists > Public > public-forms@w3.org > January 2010

Re: Minimal content model for xf:group and text

From: John Boyer <boyerj@ca.ibm.com>
Date: Mon, 11 Jan 2010 14:27:54 -0800
To: "Klotz, Leigh" <Leigh.Klotz@xerox.com>
Cc: "Owen Newnan" <onewnan@gmail.com>, "Forms WG" <public-forms@w3.org>
Message-ID: <OF1880C24C.55AD041D-ON882576A8.007A8603-882576A8.007B67E1@ca.ibm.com>
Hi Leigh,

We have already fixed a number of other tests in which the test author 
forgot to put a surrounding label on the text, and 4.6.3.a should be 
similarly fixed (The test as currently written would need such a feature, 
but the test does not require mixed content for what it is testing.)

It is better to leave the presentation of text as part of the overall 
enhancement to container control content models that may optionally be 
performed by host languages.  For example, we would like to see ODF 
improved in the future to include XForms form controls, not just the 
XForms model, but in ODF the text and form controls are at different 
layers, so there would be an indirection involved in connecting them.

John M. Boyer, Ph.D.
STSM, Lotus Forms
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com 

Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
Blog RSS feed: 

"Klotz, Leigh" <Leigh.Klotz@xerox.com>
"Forms WG" <public-forms@w3.org>
"Owen Newnan" <onewnan@gmail.com>
01/11/2010 09:57 AM
Minimal content model for xf:group and text

Owen Newnan reports that test 4.6.3.a uses text as direct child of 
xf:group, yet the minimal content model of xf:group does not allow text.
The XForms 1.1 XSD schema comments that the host language should add to 
the content model of group, case, and repeat, but doesn't include text per 
The test case 4.6.3.a though clearly requires it.
The RNC schema allows UI Inline content under group, repeat, and case, but 
I can't find a justification for that in the XForms 1.1 Recommendation.
Here's what I did find in the recommendation:
- Element xf:label is described as having "inline text" and it's in the 
XSD and RNC schemas a UI Inline, but there's no explicit mention of "UI 
Inline" in the prose.
- Non-toplevel elements generally don't have a table specifying Minimal 
Content Model, so that may be why the prose for xf:label has some 
statements about text.
- Element xf:message does have a Minimal Content Model and does allow 
text: PCDATA|UI Inline.
We might want to consider adding to the errata list that the minimal 
content model for group, repeat, and the prose for case to include 
Or do we consider presentation of text (other than label and message) to 
be wholly a host language issue?

From: Owen Newnan [mailto:onewnan@gmail.com] 
Sent: Sunday, January 10, 2010 7:26 AM
To: Klotz, Leigh
Subject: whether text content should be allowed in controls


As regards message
Chapt04/4.6/4.6.3/4.6.3.a.xhtml:49:24: cvc-complex-type.2.3: Element 
'xforms:group' cannot have character [children], because the type's 
content type is element-only.

with content
When a value is selected you must see the output "xforms-select". The 
value in
indicates which form control the event came from,the select or select1 
The output may be followed by the output for the Value Change sequence 
"xforms-revalidate", "xforms-refresh", and "xforms-value-changed").

Looking over the spec it's not obvious wto me hether text content should 
be allowed in controls (it obviously is in instances). Please advise.

Owen Newnan

cell 720 260-5753
home 303 697 1925
Received on Monday, 11 January 2010 22:28:26 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:48:39 UTC