- From: by way of <mark@magpiesnest.co.uk>
- Date: Wed, 05 Jun 2002 10:30:23 +0200
- To: W3C XML Schema Comments list <www-xml-schema-comments@w3.org>
One of the major things missing from version 1 is the ability to define new atomic types as a combination of existing types. As an example, the construction of a "currency" type that might consist of the two simple atomic types: eg. currencycode: string, restricted to "£", "$" etc. currencyval : decimal, 2 fractional digits -> currency : union of: currencycode & currencyval So, this new atomic type would permit values such as £27.20 and $7.01 but would reject both "£" and "15.88" and "15.1" etc. Comments would be welcome.
Received on Wednesday, 5 June 2002 04:39:39 UTC