W3C home > Mailing lists > Public > www-forms@w3.org > January 2002

Re: xsd:decimal type - too parochial?

From: Jérôme Nègre <jerome.negre@e-xmlmedia.fr>
Date: Mon, 14 Jan 2002 11:17:10 +0100
Message-ID: <023e01c19ce4$adb5e4a0$01bf10ac@fischer>
To: <AndrewWatt2001@aol.com>, <www-forms@w3.org>
> I am not sure if I am correct here but felt it was relevant to raise the
> issue anyway.
>
> The XSD Schema (W3C XML Schema) Recommendation Part 2 defines an
xsd:decimal
> as consisting of the characters 0 to 9 plus a period. See Chapter 3.2.3.1
of
> Part 2 of the Recommendation.

This defines what's get in the instance data. It must be locale independant.

> Given that a very likely use of XForms is to accept "decimal" numbers
which
> are currency how is the situation of, say, Germany where 100.00 Euros is
> expressed as 100,00 to be handled?

What you describe here is what you show the user. IMHO, it should use the
platform locale to display it in the expected way.

Jérôme
Received on Monday, 14 January 2002 05:18:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:50 GMT