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

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 UTC