[Home] [By Thread] [By Date] [Recent Entries]


Title: RE: 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: 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


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member