Re: [xml-dev] Don’t create elements with simple content and attributes

From
Ihe Onwuka <>
To
Date
2018-09-27T23:29:39Z
ID
<>
Thread
Re: [xml-dev] Don’t create elements with simple content and attributes
Is the currency of the cost not metadata.

<cost currency="USD">8.95</cost>

a material improvement.

On Thu, Sep 27, 2018 at 5:53 PM Arjun Ray <[email protected]> wrote:
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.

_______________________________________________________________________

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: [email protected]
subscribe: [email protected]
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php