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

>As I say, the @submission element cannot be omitted.
I think this was a typo and you meant to type "the @submission attribute
cannot be omitted."

Just to clarify for others who might read this message in the future, the
<xforms:submission> element is *not* required as part of the content of
<xforms:model>, because it is possible to have models that are not destined
for submission but only serve as data for display or other reference, for
example in I18N via the @model attribute on a UI controls <xforms:label>
element.

-----Original Message-----
From: Mark Birbeck [mailto:Mark.Birbeck@x-port.net] 
Sent: Monday, October 13, 2003 2:03 AM
To: 'Roman Huditsch'
Cc: www-forms@w3.org
Subject: 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 13:45:39 UTC