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

[www-xml-schema-comments] <none>

From: Patrick SHEPPARD <patrick@mda.ca>
Date: Mon, 6 Nov 2000 14:01:38 -0800
Message-ID: <2069F5A2FB7ED411926900805F65E51B2CD595@exchange.mda.ca>
To: "'www-xml-schema-comments@w3.org'" <www-xml-schema-comments@w3.org>
I would like to see a mechanism defined inside XML Schema by which dynamic
data may be included in a schema definition. For example, if the target
value contained a construct like the following:


Obviously, the intent is that the number of <widget> elements in the
<widgets> list should be exactly 125. I don't see how to specify a schema
which captures this very routine construct. I don't agree, for example, that
this should be relegated to business logic elsewhere in the application.
That could be done, but this situation is so common that it qualifies as a
candidate for a standard validation construct.

A suggestion for how to accomplish this is to allow something like the
following construct inside a <xsd:restriction>

	<xsd:maxExclusive xpath="../numberOfWidgets"/>

Patrick Sheppard                Direct phone:     604 231 2978
Systems Engineer                Switchboard:      604 278 3411
MacDonald Dettwiler             FAX:              604 278 2936
http://www.mda.ca               E-mail:           patrick@mda.ca
Received on Monday, 6 November 2000 17:01:55 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:08:49 UTC