Hi,

The reason we emit the error is as follows -

   - for derivation by extension, the set of attributes for a complexType
   is obtained by doing a union of the attribute declarations in the base
   and those specified as children in the extension  (loosely speaking -
   I'm paraphrasing somewhat).   This is described in section 3.4.2 of
   Structures.  Note that for *restriction*, the final set of attributes
   will not contain attribute uses from the base for which there are
   similiarly named attribute uses as children of the restriction.    The
   same is not said of extension.

   - it is illegal for the resulting set of attributes to contain
   duplicates (as per "ComplexType Definition Properties Correct. 4":
     Two distinct attribute declarations in the {attribute uses} must not
     have identical {name}s and {target namespace}s.

So, this is why we detect such an error.
If this doesn't make sense, or doesn't reflect what you're doing with your
derivation, pls let me know.

Lisa.

---------------------- Forwarded by Lisa Martin/Toronto/IBM on 06/05/2001
12:08 PM ---------------------------

Ren� Jensen <[EMAIL PROTECTED]> on 06/04/2001 02:17:34 PM

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:
Subject:  Re: Validation error


Citat "Hunter, Francine" <[EMAIL PROTECTED]>:

> I am getting the following validation error using Xerces to validate an
> XML
> file against a Schema file:
>
> Schema error: Attribute that appeared in the base should nnot appear in
> a
> derivation by extension.
>
> Has any one seen this error before. What could the problem be?

Well my guess would be that you in your schema derives one complex type
from
another complex type, and that you in the derived type defines an attribute

which already is defined in the basetype.

         \\|//
         (@ @)
-----oOOo-(_)-oOOo-----
      Ren� Jensen
   [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to