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

Re: Enforcing values of numbers

From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
Date: 17 Nov 2000 15:19:35 +0000
To: martin.me.roberts@bt.com
Cc: www-xml-schema-comments@w3.org
Message-ID: <f5b1ywatym0.fsf@cogsci.ed.ac.uk>
martin.me.roberts@bt.com writes:

> Is it possible to enforce that two numbers are within ranges relative to
> each other.
> i.e.  two elements x and y, x must be less the y.

Not in v.1 -- co-constraints are high on our wish list, but we
couldn't manage a complete design in time for v.1.

> I also have a problem where I need to have a list of Telephone number
> segments that can have leading zeros that must be formatted as follows:
> 
> <Range>nnnn-mmmm</Range>

XML Schema does not provide any micro-parsing support, sorry.

> How can I enforce mmmm to be greater then nnnn.
> 
> Lastly, I need to have a list of these telno segments that occur only once
> in a list
> <List>123 456 789</List>
> Would be legal.
> <List>123 456 123</List>
> would not be.

Nor is there any mechanism suitable for this, sorry.

ht
-- 
  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-time member of W3C Team
     2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
	    Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
		     URL: http://www.ltg.ed.ac.uk/~ht/
Received on Friday, 17 November 2000 10:19:42 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:12:49 GMT