W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2003

restriction of element with an attribute

From: <vikram.kekre1@kodak.com>
Date: Fri, 1 Aug 2003 14:47:31 -0400
To: xmlschema-dev@w3.org
Message-ID: <OF7503CAAD.05E4CBFB-ON85256D75.00668A7F@kodak.com>

Hi, I would like to
      1) create an element called value, which would have an attribute
called units. The units attribute would be defined using an enumerated
list.
      2) restrict the value of the value element to be of type xs:string.
      3) restrict xs:string from 2) to allow only numbers and allow commas
and dots (ex. of a proper value 2.22 and 2,00).

How do I do this?

Thanks.

Vik
Received on Friday, 1 August 2003 14:49:22 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:39 GMT