|
next
|
Subject: Re: Schema Validation Errors (Duplicate ID) Author: (Deleted User) Date: 04 Oct 2002 09:06 AM
|
Hi Corey,
it looks like the schema validation module of Xerces has a bug when dealing
with IDs.
First of all, here is the workaround: move the declaration of the "record"
element *before* the declaration of "collection", and your schema will be
considered valid.
For the record, the error is caused by the fact that "collection", being of
type "collectionType", includes a reference to "record", that has not yet
been found; so its declaration is retrieved and used to check if the
"collection" declaration is valid, then it's discarded.
BUT, the map holding the IDs is not cleared; so, when the declaration for
"record" is found, it looks like the "record.e" ID has already been used by
some other definition.
We will refer this bug to the Xerces-C team.
Thanks,
Alberto
|
|
|