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?



On Sat, Jan 15, 2022 at 1:06 PM Michael Kay <mike@saxonica.com> wrote:
>
> So the color of one's hair is more of an attribute, but the hair itself, or any organ, such as heart, liver or lung, is an "element"
>
> Any objections to this?
>


I'm afraid so. Philosophers have devoted their lives to these questions, and even in the more mundane world of data modelling, many books have been written.

Since you've chosen the human body as your subject area, consider disease. Is a disease a thing, or an attribute of a thing? Is there an absolute answer to this question, or is it an engineering choice in how we model it?


It's an attribute of a thing because we are only concerned about a diseases behavior with respect to the infected entity. 


[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