Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - One element isn't referenceable, the other is! [Thread Next] RE: One element isn't referenceable, the other is!To: "Marco Faustinelli" <marco_faustinelli@-----.--->, "XSD Discussion Group W3C" <xmlschema-dev@--.---> Date: 5/29/2008 10:32:00 AM For your specific schema document, adding this attribute to the <xs:schema> element seems to fix the problem: xmlns="http://runtime.onetwo.com/schemas/xinfo" Since you didn't designate that "unprefixed" means your targetNamespace, there was no way to reference the components in your target namespace. ________________________________ From: xmlschema-dev-request@w... [mailto:xmlschema-dev-request@w...] On Behalf Of Marco Faustinelli Sent: Thursday, May 29, 2008 2:13 PM To: XSD Discussion Group W3C Subject: One element isn't referenceable, the other is! =09 =09 Good morning to everybody, =09 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. =09 I have found plenty of examples of this error thanks to Google, but my schema looks fine to me to that extent. =09 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. =09 Anyway they both look fine to me, but there is something hidden that I don't see. Can anyone help me spot it? =09 Thanks in advance Marco Faustinelli - Italy =09 - - - - - - - - - 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/W EB-INF/classes/com/onetwo/runtime/service/xinfo/ws/xinfo_no_xmlns_xin.xs d'. 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/W EB-INF/classes/com/onetwo/runtime/service/xinfo/ws/xinfo_no_xmlns_xin.xs d'. =09 =09 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
