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]
Re: [xml-dev] Philosophy of XML datatypes (was: What is an integer?(was: Re: [xml-dev] XML Quiz))

On 26/03/2023 20:28, Roger L Costello wrote:
<num>44</num>

The value of the <num> element -- 44 -- represents an integer.
No, the *value* of the <num> element *is* an integer. It's the '44' that *represents* an integer.

How do we know that 44 represents an integer?
Because it has no decimal part, only a whole number.

It is a representation of an integer.
Ceci n'est pas une pipe.

A schema may declare the element content to be something else, such as a string, in which case '44 would be a string, period.

Peter


[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