RE: Help with Namespaces and Includes

Michael,

Many thanks for your helpful answers.

I now have a working solution. I tried to make "chameleon include" work,
and found that it would validate in oXygen and Liquid XML but not in
XMLspy. 

However I've now removed the default namespace declaration from my XML
files, so the elements and attributes are in no namespace, removed the
targetNamespace declarations from the XSD files, and used
noNamespaceSchemaLocation to reference the XSD files. The XML files now
validate in all three tools.

The original error was having a default namespace in the XML file but
referring to the XSD files via a noNamespaceSchemaLocation declaration
(and having a targetNamespace declaration in the XSD files). How it
validated 6 years ago I don't know - old and less picky version of
XMLspy I guess.

Anyway, thanks for your help. I now understand this a bit better!

Rowan

Received on Thursday, 4 June 2009 14:55:09 UTC