Altova Mailing List Archives>Archive Index >xml-dev Archive Home >Recent entries >Thread Prev - Access to elements from schema imported once removed ! [Thread Next] RE: [xml-dev] Access to elements from schema imported once removed!To: "Kasimier Buchcik" <kbuchcik@---------.--> Date: 9/5/2005 3:11:00 PM Title: RE: [xml-dev] Access to elements from schema imported once removed! Thanks - can you bottom-line that please? Joe Chiusano From: Kasimier Buchcik [mailto:kbuchcik@4...] Sent: Mon 9/5/2005 10:40 AM To: Chiusano Joseph Cc: XML-dev Subject: RE: [xml-dev] Access to elements from schema imported once removed! Hi, On Mon, 2005-09-05 at 10:18 -0400, Chiusano Joseph wrote: > From a quick glance, in your "imported schema", element "globalElement > is not in the "urn:foo" namespace because it does not have a namespace > prefix, and you have not specified a default namespace for that > schema. If you add a default namespace declaration to the imported > schema that makes the "urn:foo" namespace your default namespace, it > should work. The target-namespace of a top-level element declaration is dependent on the targetNamespace attribute of the parent <schema> element only; i.e. the value of the "name" attribute is not a QName. On the other hand, references to schema components _are_ QNames, so namespace declarations are taken into account when referencing. Regards, Kasimier | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
