I'm running into a related problem. I have a document that I want to validate against the .xsd. In my case, the document contains a proper namespace declaration (?). The wrapper code tells Xerces what file to look in for the schema of the namespace. In that regard, the parser works as expected.
The problem is that if the schema contains a reference to *another* namespace, the parser will not look in the list of namespaces that it has been told about to find the second namespace's schema. The only way I can get Xerces to find the second schema is to have the first schema contain an <import> with schemaLocation for the second namespace. It seems like there should be a way to have Xerces consult what it has been told by the wrapper to find the second schema. Dale
