Re: [xml-dev] Why does XML call them "attributes" and not name-value pairs?

From
Kurt Cagle <>
To
Peter Flynn <>
Date
2022-01-15T23:02:50Z
ID
<CALm0LSG4FDvD2=>
Thread
Re: [xml-dev] Why does XML call them "attributes" and not name-value pairs?
When designing schemas, I generally prefer attributes as qualifiers that provide common metadata (that is to say, they are likely to be used across a non-unitary subset of all elements). An identifier or a reference to an identifier, for instance, is something that is generally globally needed. Attributes also make sense when the body of an element is itself a template, I consider this a weaker case - attributes here exist primarily to make for a cleaner syntax, and sometimes this can create some ambiguities between the best representation of something in XML and in RDF (and I'm still not sold that the RDF-XML format is in fact a good XML design). 
Kurt Cagle
Community/Managing Editor
Data Science Central, A TechTarget Property
443-837-8725


On Sat, Jan 15, 2022 at 1:40 PM Peter Flynn <[email protected]> wrote:
On 15/01/2022 12:42, Roger L Costello wrote:

> Why does XML call them “attributes”?

Because SGML did. The fact that they are expressed as name=value pairs
is wholly coincidental and of little relevance.

Peter

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: [email protected]
subscribe: [email protected]
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php