restriction of element with an attribute

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 UTC