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

Re: How to redefine <group> and <attributeGroup>?

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Wed, 06 Feb 2002 09:34:41 +0100
Message-ID: <3C60EAA1.9090502@dyomedea.com>
To: "Henry S. Thompson" <ht@cogsci.ed.ac.uk>
Cc: Jeni Tennison <jeni@jenitennison.com>, xmlschema-dev@w3.org
Hi Henry,

Can we come back on this old email where we have different appreciations 
on you answer ;=) ?

Henry S. Thompson wrote:

> Eric van der Vlist <vdv@dyomedea.com> writes:
> 
> <snip/>
> 
>>but what about:
>>
>><xs:redefine schemaLocation="bar.xsd">
>>  <xs:group name="foo">
>>    <xs:sequence>
>>      <xs:sequence minOccurs="0">
>>        <xs:group ref="foo"/>
>>       </xs:sequence>
>>     <xs:element ref="bar"/>
>>    </xs:sequence>
>>  </xs:group>
>></xs:redefine>
>>
>>which is equivalent?
>>
> 
> Good point -- worth a clarification.
> 
> 
>>And even your:
>>
>>
>>
>>><xs:redefine schemaLocation="...">
>>><xs:group name="foo">
>>>
>>>  <xs:choice>
>>>    <xs:element ref="C" minOccurs="0" />
>>>    <xs:group ref="foo" />
>>>  </xs:choice>
>>></xs:group>
>>></xs:redefine>
>>>
>>has the effect to allow a content where none of the content of "foo" is
>>mandatory which seems contrary to (what I have understood of) the philosophy
>>of the redefinition which is to avoid that the applications are "too much
>>surprised" by the redefinition.
>>
> 
> Also true.


Does your answer (Also true) mean that my interpretation is right and 
that this should be avoided if nor forbidden or does it mean that it's 
true that the schema rec allows them?

Thanks

Eric


> 
> ht
> 



-- 
Rendez-vous a Paris pour mes formations XML/XSLT.
                                           http://dyomedea.com/formation/
------------------------------------------------------------------------
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
http://xsltunit.org      http://4xt.org           http://examplotron.org
------------------------------------------------------------------------
Received on Wednesday, 6 February 2002 03:35:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:26 GMT