RE: Question regarding attribute restriction

This is fine, as long as an empty value is valid for the base type.  In
your case, it is.

Priscilla

-----------------------------------------------------
Priscilla Walmsley             priscilla@walmsley.com
Author, Definitive XML Schema     (Prentice Hall PTR)
----------------------------------------------------- 

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Robert McCarthy
> Sent: Wednesday, May 22, 2002 9:53 AM
> To: xmlschema-dev@w3c.org
> Subject: Question regarding attribute restriction
> 
> 
> 
> Is the following restriction on unitsOfMeasure1 valid, i.e., 
> can I use the
> tag <xs:enumeration value=""/> in the restriction?  Thanks!
> 
> Robert
> 
> <xs:element name="height">
> 	<xs:attribute name="unitsOfMeasure1" use="required">
> 		<xs:simpleType>
> 			<xs:restriction base="xs:token">
> 				<xs:enumeration value="ft"/>
> 				<xs:enumeration value=""/>
> 			</xs:restriction>
> 		</xs:simpleType>
> 	</xs:attribute>
> 	.....
> </xs:element>
> 
> 
> 
> 

Received on Friday, 24 May 2002 08:34:32 UTC