Clarification of id attribute on model and model schema reference .

Hi,

I'm reading  http://www.w3.org/TR/2003/PR-xforms-20030513/ and have some
points that I believe require clarification within the document.

Under section "3.2.1 Common Attributes" it states that "A host language must
include an attribute of type xsd:ID on each XForms element". However, many
of the examples throughout the document, and in particular the complete
example in "G.1 XForms in XHTML", do not have an xsd:ID attribute type on
the <xforms:model> element.

Under the section "2.4 Multiple Forms per Document" the first paragraph
states that each form needs and id attribute on the model element, therefore
it would be better to state under 3.2.1 that "A host language must include
an id attribute of type xsd:ID on each XForms element". (Note the addition
of "id" to match section 2.4)

However, section 2.4 also explains how 'scoped resolution' works for when
the binding element does not have a model attribute. And in such
circumstances the id attribute on a model is not used. This and the fact
that XForms can be authored and work in current implementations without an
id attribute on some XForms elements (particularly the model element)
suggests to me that under 3.2.1 it should state "A host language SHOULD
include an id attribute of type xsd:ID on each XForms element". (My
understanding of the difference between "must" and "should" comes from your
document reference in section "1.2 Reading the Specification".

I also believe that the requirement for a id attribute of type xsd:ID on
XForms elements should be explicited reflected in the XForms schema
(XForms-Schema.xsd).

I am in the process of conveting the example "G.1 XForms in XHTML" to work
in Internet Explorer 6SP1 with the FormsPlayer XForms processor. The
payments.xsd in the example is not accepted by FormsPlayer as the
ComplexType definition causes it to error. Under section 5 it describes how
XForms Model datatypes are support as specified under XML Schema part 2. XML
Schema part 2 does not support the ComplexType definition. Therefore in
XForms should the schema the model references only be concerned with
datatypes and not structures. In which case the payments.xsd in the example
is wrong.

I also believe that for completeness in "G.1 XForms in XHTML" that:

<head>
    <title xml:lang="fr">XForms en XHTML</title>

should be:

<head>
    <title xml:lang="fr">XForms en XHTML</title>
    <title xml:lang="en">XForms in XHTML</title>

I hope these comments prove useful.

Cheers,
DAN

Daniel Fowler
Solutions Architect
daniel.fowler@focus-solutions.co.uk
Tel: +44 (0) 1926 468300
Extension: 341

Received on Friday, 27 June 2003 10:44:07 UTC