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

Re: how to redefine a content model

From: Eddie Robertsson <erobertsson@allette.com.au>
Date: Tue, 05 Nov 2002 09:40:14 +1100
Message-ID: <3DC6F74E.1020309@allette.com.au>
To: "Henry S. Thompson" <ht@cogsci.ed.ac.uk>
CC: Francis Brouns <francis.brouns@ou.nl>, xmlschema-dev@w3.org

Hi,

>Group redefinition isn't supported in XSV yet, sorry.
>
>In any case, your attempt isn't valid, you need to redefine the group
>_in terms of itself_, i.e.
>
> <xs:redefine schemaLocation="schema1.xsd">
>  <xs:group name="testGroup">
>   <xs:choice>
>    <xs:groupref="testGroup"/>
>    <xs:element name="b"/>
>   </xs:choice>
>  </xs:group>
> </xs:redefine>
>
>*But*, having said that, don't use redefine at all, use substitution
>groups.  That's the easy way to allow _post-hoc_ additions to choices.
>
True, BUT this also means that all elements included in the choice must 
be declared as global elements. This may not be a desirable side effect 
in the design of the schema.

Cheers,
/Eddie

>
>ht
>  
>
Received on Monday, 4 November 2002 17:41:21 GMT

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