W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2003

XML Schema wishlist

From: Uglow, Brett <uglowb@anz.com>
Date: 13 Oct 2003 13:18:02 +0200
Message-ID: <93AE8FEC132CA44998C14931A2FCBA483B29C4@exgau085ssm00.oceania.corp.anz.com>
To: <www-xml-schema-comments@w3.org>

I'm not certain if the following capabilities are already possible in XML Schema 1.0, but I haven't found a way to implement them. What would be nice if there was a way to attach restrictions to elements based on the result of an XPath expression. This is useful for when an element may appear as a child of several other elements, but the attributes of the element are relevant based on the element's parent or ancestor.

A common scenario would be the use of an element to describe a field. The field's attributes are not always relevant, based on the presence or value of other attributes. E.g. If a field has a "datatype" attribute, it is required to have a "fieldSize" attribute. If the field does not have a "datatype" attribute, it must have a child element called "list".

Brett Uglow
Received on Monday, 13 October 2003 07:19:29 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:50:01 UTC