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?=

On Fri, 28 Sep 2018 at 16:27, Costello, Roger L. <costello@mitre.org> 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.
>

So just to clarify, you are saying that

<Cost>
    <Currency>USD</Currency>
    <Amount>8.95</Amount>
</Cost>

is good, but for example


<Cost>
    <Currency type="iso4217">USD</Currency>
    <Amount type="decimal">8.95</Amount>
</Cost>

would be bad?

Would it make the first bad if the document had a dtd which defaulted
the type attributes so the two forms parsed in the same way?

David


[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