RE: On id and name attributes

> -----Original Message-----
> From: JeanMichel.Leclercq@electrabel.com
> >No. Each form has its own namespace for control names, and each
> >applet has its own scope for parameters.
> >
> 
> I don't agree with that.
>
> A form does not have a namespace. A form is in a namespace. 
> Instead, a form
> has a scope.

Lets not get confused with different usage of the word namespace, nor
_whatever_ namespace the FORM is in (HTML, yes, but that's not the point).

What is being discussed is that the names of controls on a form only have to
be unique within the form. This - in any non-XML sense - would be described
as the control names occupying a 'namespace' occupied only by controls on
this form.

> In the XML glossary, a namespace is related to a dtd via an 
> URI. Then, we
> say that the form element is in the HTML namespace (it can be 
> in another

Also DTD's are not a pre-requisite for XML namespaces. An XML namespace on
its own only serves to prevent namespace-collision for tags within an XML
document (by linking a prefix to a unique identifier - the namespace). Some
namespaces may not have a defined DTD (or Schema).

Received on Tuesday, 17 July 2001 09:47:54 UTC