W3C home > Mailing lists > Public > www-forms@w3.org > October 2003

RE: Correct use of <xforms:submission> and <xforms:submit>

From: Mark Birbeck <Mark.Birbeck@x-port.net>
Date: Mon, 13 Oct 2003 10:01:11 +0100
Message-ID: <E3ED00A7C285EE408679DE2A26D1C7810148F7E3@S007.x-port.net>
To: 'Roman Huditsch' <roman.huditsch@hico.com>
Cc: www-forms@w3.org

Hi Roman,

> Section 8.1.9 "The submit Element" indicated that there has to be an
> "submission" with corresponds to an id attribute of an <xforms:submission>
> <quote>
>     submission
>         Required reference to element submission
> </quote>
> But reading section 3.3.3 "The submission Element" there is nothing said
about an
> required id attribute. Even the example given doesn't show it.

The @submission attribute is compulsory on xf:submit, since it is used to
identify the xf:submission element that will be used to guide the submission
process. But that is not the same as saying that @id is required on
xf:submission - which it isn't. You could have a situation where the submit
process is initiated in some other way, and so you would not need an @id.

> So is that reference really needed? Or does the submit element refer to
the first
> <xforms:submission> element per default, when those attributes are

As I say, the @submission element cannot be omitted. @id could be omitted,
but the error would then be with xf:submission (since @submission does not
refer to a valid xf:submit) and not with the missing @id.



Mark Birbeck
Co-author Professional XML and
Professional XML Meta Data,
both by Wrox Press

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

Managing Director
x-port.net Ltd.
4 Pear Tree Court

E: Mark.Birbeck@x-port.net
W: www.x-port.net
T: +44 (20) 7689 9232
Received on Monday, 13 October 2003 05:03:22 UTC

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