ISSUE: Why no 'attribute of type'?

Summary: Why is there an 'element of type' syntax, but no 'attribute
          of type'?


The current syntax allows

    element of type _QName_

but not

    attribute of type _QName_

Why?  Data is as often stored in attributes as elements.  It is not
difficult to support the second if you already have the first.  And
currently, there is no way of referring to this type, which seems at
least as important as the element variant.

Adding gratuitous assymetry to XQuery seems like a bad idea, not only
for elegance and functionality, but also for teaching and learning the
language.  'attribute of type' is a meaningful concept, and users will
expect to be able to type it.


In summary, please add an 'attribute of type' syntax to parallel your
'element of type' syntax.


Thank you for your time.
       -Shawn Vincent.


--
Shawn Vincent, svincent@exalt.com
Exalt Inc.

Received on Monday, 14 January 2002 10:32:38 UTC