XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
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 <peter@silmaril.ie> 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: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS