W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2002

Question regarding attribute restriction

From: Robert McCarthy <rmccarthy@vasocor.com>
Date: Wed, 22 May 2002 09:53:11 -0400 (EDT)
To: <xmlschema-dev@w3c.org>
Message-ID: <001401c20197$20e03810$1c01a8c0@DDGDQ511>

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 05:05:44 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:56 UTC