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>


> -----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
The element declaration of "message_content" in the given schema,
declares the element to be in the namespace



Received on Thursday, 18 May 2006 09:02:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:10 UTC