Re: [xml-dev] Don’t create elements with simple content and attributes
So if you claim as you have that
<Cost>
<Currency>USD</Currency>
<Amount>8.95</Amount>
</Cost>
<Currency>USD</Currency>
<Amount>8.95</Amount>
</Cost>
is explicitly labelled
then let's look at a plausible extension of that.
<Cost>
<Currency>USD</Currency>
<Amount>8.95</Amount>
<Currency>USD</Currency>
<Amount>8.95</Amount>
<Currency>GBP</Currency>
<Amount>6.95</Amount>
</Cost>
<Amount>6.95</Amount>
</Cost>
Here the relationship between the Amounts and the currency that applies to (labels) them is the immediate preceding sibling.
But that relationship is not explicit. It's implicit. So your designation of what is an explicit label is neither coherent nor rigorous and therefore not an appropriate arbiter for determining what is good or bad.
On Fri, Sep 28, 2018 at 11:27 AM Costello, Roger L. <[email protected]> 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.
Thanks John for explaining it better than I could.
/Roger