[Home] [By Thread] [By Date] [Recent Entries]

  • From: Kurt Cagle <kurt.cagle@g...>
  • To: Peter Flynn <peter@s...>
  • Date: Sat, 15 Jan 2022 15:02:50 -0800

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@s...> 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@l...
subscribe: xml-dev-subscribe@l...
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]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member