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

Re: Redefining named model groups.

From: Jeni Tennison <jeni@jenitennison.com>
Date: Mon, 11 Mar 2002 18:24:41 +0000
Message-ID: <109549306581.20020311182441@jenitennison.com>
To: Keith Suderman <suderman@cs.vassar.edu>
CC: xmlschema-dev@w3.org
Hi Keith,

> I have been reading through the recommendation and the mailing list
> archive and I have almost convinced myself the following schemas are
> valid. However, I have yet to find a parser that will agree with me.
> XSV and XML Spy both have problems with the following redefintion of
> a named model group, although to XSV's credit, its documentation
> does plainly state that redefining named model groups is not yet
> implemented. I would appreciate it if a schema guru could
> eye-validate what I have, and let me know if I am on the right track
> or what might need to be changed.

It looks OK, or at least it does after you correct the class.phrase
complex type in base.xsd so that it's well-formed:

>      <!-- Put them all together -->
>      <xs:complexType name="class.phrase" mixed="true">
>          <xs:complextContent>
                      ^ delete that t
>              <xs:extension base="xces:class.global>
                                  add a close quote ^
>                  <xs:choice minOccurs="0" maxOccurs="unbounded">
>                      <xs:group ref="xces:m.phrase"/>
>                      <xs:element name="x" type="xs:string"/>
>                      <xs:element name="y" type="xs:string"/>
>                      <xs:element name="z" type="xs:string"/>
>                  </xs:choice>
>              </xs:extension>
>          </xs:complexContent>
>      </xs:complexType>

I tested with Xerces-C++ and it validated fine.



Jeni Tennison
Received on Monday, 11 March 2002 13:24:54 UTC

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