W3C home > Mailing lists > Public > public-xml-schema-testsuite@w3.org > January 2007

[Bug 4147] MS Particles tests: particlesV020

From: <bugzilla@wiggum.w3.org>
Date: Wed, 24 Jan 2007 18:31:59 +0000
CC:
To: public-xml-schema-testsuite@w3.org
Message-Id: <E1H9mud-0003Tj-Ae@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4147





------- Comment #1 from zafara@microsoft.com  2007-01-24 18:31 -------
Actually you have to wrap the derived element particle in a <choice> group
itself to check a valid restriction as per Elt:All/Choice/Sequence --
RecurseAsIfGroup. So it comes down the question if 

<choice>
<element name="bar" type="x:c2" maxOccurs="2"/>
</choice>

is a valid restriction of:

<choice maxOccurs="3">
  <element name="SUB" type="x:c1"/>
  <element name="bar" type="x:c2"/>
</choice>

which is clearly is not as the bar in the derived type is not a valid
restriction of the one in the base type as it fails occurence range check.
Received on Wednesday, 24 January 2007 18:32:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:21:56 GMT