[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
Re: [xml-dev] Don’t create elements with simple content and attributes
- From: Arjun Ray <arayq2@gmail.com>
- To: xml-dev@lists.xml.org
- Date: Thu, 27 Sep 2018 17:53:16 -0400
On Thu, 27 Sep 2018 09:43:02 -0600, you wrote:
| "Principles of XML design: When to use elements versus attributes", 2004:
| https://www.ibm.com/developerworks/library/x-eleatt/index.html
An old discussion on this list.
http://lists.xml.org/archives/xml-dev/200205/threads.html#01027
http://lists.xml.org/archives/xml-dev/200205/threads.html#01034
In general, avoid placing "data", or any kind of analytic content, in
attribute values. That is, attributes should be used for "metadata"
only. Some SGML concepts didn't make the cut for XML. Data content
notations in DTDs would take care of a lot of corner cases.
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]