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

Restriction based on attribute value

From: <richard.liu@ubs.com>
Date: Mon, 3 May 2004 12:58:48 +0200
Message-ID: <A525007EB6D9804DA3E6FF1F8A64D78AA4D2CD@s01b1f4j-bu.flur.zuerich.ubs.ch>
To: <xmlschema-dev@w3.org>

My schema defines an element images consisting of child elements image.  Each image has an attribute context, an enumeration of "viewing", "viewing-1024", "viewing-800", "printing".  I would like to define a new type of images based on images.  The new type must have at least two image child elements, one with context="viewing-1024" and one with context="viewing-800".  How can I do this, perhaps by restricting the original images?

Richard R. Liu

Richard R. Liu
IVHS - Content Mgmt Fachstelle
Hochstr. 16, 2149
Tel. 061/288 76 89 
Received on Monday, 3 May 2004 07:48:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:21 UTC