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
attribute
> "submission" with corresponds to an id attribute of an <xforms:submission>
element:
>
> <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
omitted?

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.

Regards,

Mark


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
London
EC1R 0DS

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 GMT

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