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

RE: Well formed XForms

From: Rhydian Morris <RMorris@focus-solutions.co.uk>
Date: Mon, 14 Mar 2005 13:23:36 -0000
Message-ID: <30A02A46CB77D511851900508BAEADBC0168321D@exchange.focus-internal.co.uk>
To: 'Steve Brimley' <steve.brimley@toplev.com>, www-forms@w3.org

Hi Steve,

XFormation 2.0 provides some new functionality which makes identifying
whether the XForms you have written is valid and conforms to the XForms
Schema.

I have put a screen shot of the sample1.xhtml on
www.xformation.com/product/w3c.asp, to illustrate this.

XFormation uses different icons to identify whether the document has parsed
against the relevant schemas. It uses the XHTML and the XForms schemas. If
you look at the screen shot  you will notice that the HTML elements are
identified as blue icons, the XForms elements identified as red and you see
that there is an orange icon named label. This identifies that the element
label has not conformed to the schema.

If you now look at the second image I have dragged the element onto the
input label. This has parsed correctly against the screen and identifies
that the element is valid.

You can also use the document validation feature which you can run against
the document. This will also highlight errors against the Schema plus
additional contextually errors.

I hope this helps.

Regards


Rhydian

Note: There seems to be a problem locating the 1.1 dtd so when you open it
up there is a remote server time out. To get the sample1.xhtml working
simply comment the doctype out. We will look into why this is currently
occurring.


-----Original Message-----
From: Steve Brimley [mailto:steve.brimley@toplev.com]
Sent: 14 March 2005 10:27
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 13:24:08 GMT

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