Re: XForms: Question about tax form example
Erik Bruchez <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
Aaron Reed wrote: > I agree with 2 and 3. 1 should be 'may have a containing form control'. > In none of the quotes you provided (nor anywhere in the spec) is label > restricted to only being a child of certain form controls. The fact that > formsPlayer, X-Smiles, and Novell's XForms processors all render labels > outside of controls without error leads me to believe that we are > behaving correctly. We are compatible with other implementations who > have a similar interpretation of the spec. If the WG wanted labels only > contained in form controls, then they could have enforced this in the > XForms schema or turned the label into an attribute on a form control, > but they didn't. Because it isn't restricted by the spec, then we > should allow the form author maximum flexibility while maintaining > compatibility with other implementations. We can't always predict how a > form author may chose to use a control to meet their needs. > > More on this topic is addressed by this thread in the W3C's mailing list > archive: http://lists.w3.org/Archives/Public/www-forms/2005Mar/0066.html Thanks. I am forwarding this to www-forms to see what other people think. But again, the statement from the spec that caught my attention is this one: "8.3.3 The label Element - This required element labels the containing form control with a descriptive label." The specification is known not to be 100% consistent. This may just be an example of that. In addition, I don't really see the benefit of using xforms:label outside of a control. You can use xhtml:label instead, or just some other XHTML constructs. -Erik