W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2002

Re: referenceable from schema document

From: Jeni Tennison <jeni@jenitennison.com>
Date: Thu, 29 Aug 2002 11:32:51 +0100
Message-ID: <1791458177778.20020829113251@jenitennison.com>
To: Mgr Georg Black <georg.black@seznam.cz>
CC: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT