W3C home > Mailing lists > Public > www-forms@w3.org > December 2001

XForms WD 20011207 - document architecture

From: JOHANSSON, Justin <Justin.JOHANSSON@baesystems.com>
Date: Wed, 12 Dec 2001 16:57:22 +1030
Message-ID: <807C87879475D411B1420060B057FD430302F0E1@sbntex1.baea.com.au>
To: "'www-forms@w3.org'" <www-forms@w3.org>
4.3.1. model states:

"Element model is used as a container for other XForms elements, embedded 
in the head section of other document types such as XHTML. ...."

Also while not spelt out in the spec, it is implied that the form controls 
themselves are embedded in an element called "body" in the document.

What's wrong with this is that the spec is imposing a head/body structure on

the document.  That's fine for HTML/XHTML but that's not find for XML 
documents in the general case.  Who says that a valid and well-formed 
XML document must adhere to a head/body pattern?  The XML spec 
certainly does not.  Therefore in constructing a consistent set of standards

in which XForms should fit in with XML, the XForms spec should not 
impose such structure on the document itself and there needs to be 
a general purpose XML-ish way of associating the xforms controls 
with the xforms model element.

Actually I which every XML document did have a head/body structure and 
that would make life easier for everyone.  However XSL documents 
(eg. the W3C XMLspec.xsl) do not have head/body elements.  There
may be some valid reason for wanting to use XForms in an XSL 
document such as in a web authoring application and such forethought 
should be considered in the XForms spec.

Justin Johansson
Software Engineer,
PO Box 1068
South Australia  5108
Ph:     +61 8 8480 7564
Email: justin.johansson@baesystems.com 
Received on Wednesday, 12 December 2001 01:29:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:05 UTC