W3C home > Mailing lists > Public > xmlschema-dev@w3.org > May 2006

RE: include and targetNamespace error

From: Buchcik, Kasimier <k.buchcik@4commerce.de>
Date: Thu, 18 May 2006 11:02:16 +0200
Message-ID: <E0A8BA89DC17A44B8A502420EA13E29D25E79B@pegasus.omega.4commerce.de>
To: "Debora Vanni" <debora.vanni@tvblob.com>, <xmlschema-dev@w3.org>, <priscilla@walmsley.com>

Hi,

> -----Original Message-----
> From: xmlschema-dev-request@w3.org 
> [mailto:xmlschema-dev-request@w3.org] On Behalf Of Debora Vanni
> 
> Hi!
> I have some problems with targetNamespace:
> I have a file .xsd with some simpleType that I want to use also in
> another file.xsd, so I would like to include it.
> When I do it it comes out this error
> element message_content: Schemas validity error : Element
> 'message_content': No matching global declaration available.
> (message_content is the root node of the message xml).
> I tried not to use the include and define types inside schema but it's
> the same. It only works without define targetNamespace and xmls.
> These are files...what's wrong?
> Please help me!

The error message:
"Element 'message_content': No matching global declaration available."
means that the element in your instance is in no namespace. Libxml2
uses James Clark's namespace notation for error reports, thus a
'message_content' is an element in no namespace, and a
'{urn:test:foo}message_content' is an element in the namespace
"urn:test:foo".
The element declaration of "message_content" in the given schema,
declares the element to be in the namespace
"http://www.tvblob3.com/TVB".

[...]

Regards,

Kasimier
Received on Thursday, 18 May 2006 09:02:31 GMT

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