Re: referenceable from schema document

Hi Georg,

> I am trying xerces 2.0.0.(after 1,3,1), so I had to changed schema.
> When I repair many differents, I have only one.
>
> Components from namespace 'http://www.w3.org/2001/XMLSchema' are not
> referenceable from schema document
> 'http://localhost/sch/dsldap.xsd'.
>
> What is wrong???  Thanks for your ideas.
>
> src:
> <?xml version="1.0" encoding="UTF-8"?>
> <P xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="http://localhost/sch/dsldap.xsd">
> ---
> </P>

There's something wrong with your schema, but without seeing it it's
very hard to guess what it is. From the message, I imagine that you're
doing something like:

  <xs:element ref="xs:complexType" />

in your schema -- referencing a component from the
'http://www.w3.org/2001/XMLSchema' namespace -- but haven't imported
that namespace. Try adding:

<xs:import namespace="http://www.w3.org/2001/XMLSchema" />

to your schema.

But note that this is a complete guess. If you want something more
solid, I suggest that you send the relevant part of the schema...

Cheers,

Jeni

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

Received on Thursday, 29 August 2002 06:32:52 UTC