Re: Redefining named model groups.

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.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

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