Re: using mathmatical expressions to restrict values

David:
There are no expressions in XML Schema 1.0.  Several people have
asked for these, though, most notably the XML Query WG and the
XForms WG.  So its a good bet that we will eventually define support
for expressions but its not clear when and in what WG.

All the best, Ashok


David Finkbeiner <David_Finkbeiner@sparta.com>@w3.org on 08/23/2000
02:07:15 PM

Sent by:  www-xml-schema-comments-request@w3.org


To:   www-xml-schema-comments@w3.org
cc:
Subject:  using mathmatical expressions to restrict values



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:36:00 UTC