Re: Redefine and extension base

Hi Pete,

> When I attempt to validate an instance against this, XSV (both the
> service on the web and the Windows executable) reports an error in
> new-testdc.xsd "Basing a type on itself is forbidden".
>
> But under 4.2.2 of XML Schema 1: Structures, I find
>
>> Type definitions must use themselves as their base type definition;
>
> And in fact, if I change the base attribute value in new-testdc.xsd
> to, say, xs:string then XSV tells me "attempt to redefine in terms
> of type other than self: elementType vs. string" - which I guess is
> what I'd expect.
>
> But it seems to want it both ways.... Is this a problem in XSV or
> (very likely) have I missed something please?

I think that it's a problem in XSV. What you've done looks OK and
Xerces C++ seems to manage without any complaints.

Cheers,

Jeni

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

Received on Saturday, 12 January 2002 08:01:34 UTC