W3C home > Mailing lists > Public > xmlschema-dev@w3.org > December 2001

Re: validation problem, conflicting element scope ?

From: Guillaume Rousse <rousse@ccr.jussieu.fr>
Date: Thu, 6 Dec 2001 12:00:20 +0100
To: xmlschema-dev@w3.org
Cc: Jeni Tennison <jeni@jenitennison.com>
Message-Id: <20011206110020.85A28313@silbermann.snv.jussieu.fr>
Ainsi parlait Jeni Tennison :
> Hi Guillaume,
> > It seems xerces-j try to validate the <name> element as the global
> > definition, not as the local one. And curiously, this conflict only
> > happens here, whereas i have plenty of other local name elements
> > elsewhere...
> In the example you posted, you had a *locations* element whereas the
> local declaration of the name element is within the declaration for
> the *location* element - I don't know whether that's something that
> was mistyped when you posted or something you actually have in your
> XML document?
That's not a mystiping:
- <locations> is an collection of <location> element
- <location> is a global element with <country> as a possible substitution
- <location> uses LocationType, <country> uses CountryType subtype
- <name> is defined for LocationType

Is this clearer :-) ?
Guillaume Rousse <rousse@ccr.jussieu.fr>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html
Received on Thursday, 6 December 2001 06:01:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:14:56 UTC