Re: [xml-dev] Why associate an attribute with a namespace ?

From
Jeff Greif <>
To
Date
2005-02-16T22:29:04Z
ID
<070101c51476$ec391eb0$af00a8c0@jmg>
Thread
Re: [xml-dev] Why associate an attribute with a namespace ?
By using an attribute from a particular namespace which has a "global"
declaration (for example in XML Schema), you can ensure that any reference
to that attribute name will require values of the same data type.  This is a
convenience to some applications, and a convenience in defining XML
structures, though not a necessity.  The name may not validly be used for an
incompatible attribute.  DTDs do not have a comparable facility -- they can
provide, via entities, reusable attributes, but not require that all uses be
compatible.

Jeff