Re: Philosophy of XML datatypes (was: What is an integer? (was: Re: [xml-dev] XML Quiz))

Peter Flynn <[email protected]> Wed, 29 Mar 2023 15:36:30 +0100
Newsgroups gmane.text.xml.devel
Organization Silmaril Consultants
Message-ID <[email protected]>
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

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: [email protected]
subscribe: [email protected]
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php