RE: Well formed XForms

Hello Steve,

You are exactly right. With all due respect to the Mozilla guys for making a
great start with their XForms plug-in, their examples are what you might
call "badly formed"!

I believe they are tidying them up, but I would not use them as a source of
learning material at this early stage.

Regards,

Mark


Mark Birbeck
CEO
x-port.net Ltd.

e: Mark.Birbeck@x-port.net
t: +44 (0) 20 7689 9232
w: http://www.formsPlayer.com/
b: http://internet-apps.blogspot.com/

Download our XForms processor from
http://www.formsPlayer.com/

> -----Original Message-----
> From: www-forms-request@w3.org 
> [mailto:www-forms-request@w3.org] On Behalf Of Steve Brimley
> Sent: 14 March 2005 10:41
> To: www-forms@w3.org
> Subject: Well formed XForms
> 
> 
> 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 11:51:04 UTC