W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > July to September 2000

using mathmatical expressions to restrict values

From: David Finkbeiner <David_Finkbeiner@sparta.com>
Date: Wed, 23 Aug 2000 14:07:15 -0400
Message-ID: <39A412D3.B206490C@sparta.com>
To: www-xml-schema-comments@w3.org
Currently you can restrice the value of a datatype as:
<simpleType base="integer">
  <minInclusive value="1"/>
  <maxInclusive value="10"/>
</simpleType>

Is there any mechinism to allow mathmatical expressions as legal values
for the attribute "value"; such as "2+2", or even more importantly as a
function of another element (say, temperature_in_fahrenheit =
(9/5)*temp_in_celcius + 32).

Thanks
Received on Wednesday, 23 August 2000 14:08:09 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:49:53 UTC