[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
RE: [xml-dev] Don’t create elements with simplecontent and attributes
- From: Amelia A Lewis <amyzing@talsever.com>
- To: xml-dev <xml-dev@lists.xml.org>
- Date: Fri, 28 Sep 2018 18:29:05 -0400
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!
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]