[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

One element isn't referenceable, the other is!

From: Marco Faustinelli <marco_faustinelli@yahoo.com>
Date: Thu, 29 May 2008 11:12:36 -0700 (PDT)
To: XSD Discussion Group W3C <xmlschema-dev@w3.org>
Message-ID: <797760.3951.qm@web56909.mail.re3.yahoo.com>
One element isn't referenceable
Good morning to everybody,

Validating in Eclipse the schema attached to this email I get an error "components with no target namespace are not referenceable", enclosed as a whole at the end of this message.

I have found plenty of examples of this error thanks to Google, but my schema looks fine to me to that extent.

What I don't understand is why the error is thrown only for the first element in my XSD (xEnvelopesRequestType) and not for the second (xEnvelopesResponseType). If I switch the position of the elements, always the first gets the blame while the second is judged ok.

Anyway they both look fine to me, but there is something hidden that I don't see. Can anyone help me spot it?

Thanks in advance
Marco Faustinelli - Italy

- - - - - - - - - COMPLETE ERROR MESSAGE FROM ECLIPSE XSD EDITOR - - - - - - - - - 
Could not create Schema: src-resolve.4.1: Error resolving component 'xEnvelopesRequestType'. It was detected that 'xEnvelopesRequestType' has no namespace, but components with no target namespace are not referenceable from schema document 'file:C:/Programmi/bea/user_projects/domains/mydomain/applications/otr/WEB-INF/classes/com/onetwo/runtime/service/xinfo/ws/xinfo_no_xmlns_xin.xsd'. If 'xEnvelopesRequestType' is intended to have a namespace, perhaps a prefix needs to be provided. If it is intended that 'xEnvelopesRequestType' has no namespace, then an 'import' without a "namespace" attribute should be added to 'file:C:/Programmi/bea/user_projects/domains/mydomain/applications/otr/WEB-INF/classes/com/onetwo/runtime/service/xinfo/ws/xinfo_no_xmlns_xin.xsd'.

Received on Thursday, 29 May 2008 18:13:26 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.