W3C home > Mailing lists > Public > www-forms@w3.org > August 2002

id attributes, namespaces and possible coding errors

From: <AndrewWatt2001@aol.com>
Date: Thu, 29 Aug 2002 10:41:33 EDT
Message-ID: <14c.13372df2.2a9f8c9d@aol.com>
To: www-forms@w3.org, www-forms-editor@w3.org, xforms@yahoogroups.com

It seems to me, if I understand the current WD correctly, that more than one 
example contains coding errors relating to id attributes.

If I am reading the WD correctly then id attributes are subsumed into 
"Common" attributes described in 3.2.1 and which are provided by host 
languages, according to 3.2.1.

If the host languages provide these id attributes (the WD doesn't quite say 
that, but refers to attributes of type xsd:ID) then are those id attributes 
in the namespace of the host language?

It seems, to me at least, reasonable that they are.

However, coding examples such as the example in Chapter 2.1 show id 
attributes with no namespace prefix. ... Quite reasonably a reader would 
assume that the id attributes belong (natively?) to the XForms element on 
which they are situated.

Should the example in 2.1 (and other similar examples) more correctly show 
html:id attributes or svg:id attributes - since 3.2.1 states that the type 
xsd:ID attributes come from the host language?

Am I totally misunderstanding this?

What is the point of this seeming complexity? Why not much more simply allow 
some/all XForms elements to have an id attribute?

Andrew Watt
Received on Thursday, 29 August 2002 10:41:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:44 UTC