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

Re: using mathmatical expressions to restrict values

From: <petsa@us.ibm.com>
Date: Wed, 23 Aug 2000 14:35:21 -0400
To: David Finkbeiner <David_Finkbeiner@sparta.com>
cc: www-xml-schema-comments@w3.org
Message-ID: <85256944.006618D2.00@D51MTA03.pok.ibm.com>
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
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"/>

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).

Received on Wednesday, 23 August 2000 14:36:00 UTC

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