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

From
Amelia A Lewis <>
To
xml-dev <>
Date
2018-09-28T22:29:05Z
ID
<>
Thread
RE: [xml-dev] Don’t create elements with simple content and attributes
On Fri, 28 Sep 2018 15:27:23 +0000, Costello, Roger L. wrote:
> John Cowan wrote:
>   *   So he is arguing that the two components of a cost, the numeric 
> part and the unit, each should be explicitly marked up.
> 
> Yes! That’s exactly what I am saying.

Well. Then there's only One Right Way, clearly:

<Cost>
  <Dollars>
    <Hundreds>zero</Hundreds>
    <Hundredths>five</Hundredths>
    <Tens>zero</Tens>
    <Tenths>nine</Tenths>
    <Thousands>zero</Thousands>
    <Thousandths>zero</Thousandths>
    <Units>eight</Units>
  </Dollars>
</Cost>

Element names obviously depend upon language, as does text content.

Isn't this just *vastly* more clear? And all the elements are required 
to be in alphabetical order, so you can see if you've missed one!

Amy!