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]
=?UTF-8?Q?Re=3A_=5Bxml=2Ddev=5D_Don=E2=80=99t_create_elements_with_simple_co?==?UTF-8?Q?ntent_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 <arayq2@gmail.com> 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: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
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]


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