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

From
Michael Kay <>
To
Dimitre Novatchev <>
Date
2022-01-15T18:06:02Z
ID
<>
Thread
Re: [xml-dev] Why does XML call them "attributes" and not name-value pairs?
> 
> 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?

Perhaps every attribute is a relationship of one thing to another. Hence RDF triples.

Michael Kay
Saxonica