<xsd:schema xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:A_prefix="http://A.nsURI"
xmlns:B_prefix="http://B.nsURI"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
ecore:nsPrefix="B_prefix"
ecore:package="BPackage"
targetNamespace="http://B.nsURI">
[...]
<xsd:import namespace = "http://A.nsURI" schemaLocation="platform:/plugin/where/the/schema/A/is"/>
[..]
</xsd:schema>
<?xml version="1.0" encoding="UTF-8"?>
<B_prefix:rootNode
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:B_prefix="http://B.nsURI"
xsi:schemaLocation="http://B.nsURI java://BPackage"
id="test.component12" version="1.0.0" >
<node xsi:type="<!-- when calling content assist here, the result is : "ANode", instead of "A_prefix:ANode" and the editor marks it as an error:
"Cannot resolve 'ANode' to a type definition for element 'node'."-->
"/>
<!-- it is because the namespace declaration is missing : xmlns:A_prefix="http://A.nsURI"-->
</B_prefix:rootNode>