W3C home > Mailing lists > Public > www-forms@w3.org > March 2005

Well formed XForms

From: Steve Brimley <steve.brimley@toplev.com>
Date: Mon, 14 Mar 2005 10:41:19 -0000
Message-ID: <206030A1B6DDD5118C6E0050FC01A6A75C593E@TOPLEVEL_SERVER>
To: www-forms@w3.org

Hi

I have been try and get to grips with XForms by looking at sample XForms
code together with the XForms spec.  One of the samples I am looking for is
at http://www.mozilla.org/projects/xforms/sample1.xhtml.  It contains code
that dissociates labels from form controls.  Most of the labels are like
this but here's a fragment as an example:

	  <tr bgcolor="#eeeeee">
	    <td valign="top" bgcolor="#eeeeee">
		  <xf:label id="b8">9</xf:label>
		</td>
	    <td valign="top" bgcolor="#eeeeee">
		  <xf:label id="n8">
		    Add lines 7 and 8a.  These are your <b>total
payments.</b>
		  </xf:label>
		</td>
	    <td align="right" valign="top" bgcolor="#eeeeee">
		  <xf:input ref="/f1040ez/section03/line09"/>
		</td>
	  </tr>

This doesn't seem to conform to the definition of a label in the spec since
there is no "containing form control":

8.3.3 The label Element
This required element labels the containing form control with a descriptive
label. Additionally, the label makes it possible for someone who can't see
the form control to obtain a short description while navigating between form
controls.

So my question is; is the sample code well formed or not?

Regards


Steve Brimley
Technical Director, Toplevel Computing
Phone 01453 753955
Received on Monday, 14 March 2005 10:27:10 GMT

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