I have the following XML document:

<?xml version='1.0' encoding='utf-8'?>
<config xmlns="some/link">
<second_namespace xmlns="some/other/link">
....
//bunch of easy elements that I know how to handle
</second_namespace>
</config>

Visual Studio generated the following schemas:
#1 (outer namespace):
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="some/link" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="some/other/link" />
<xs:element name="config">
<xs:complexType>
<xs:sequence>
<xs:element xmlns:q1="http://viasat.com/ns/mm/config" ref="q1:second_namespace" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>

Then a second schema (inner namespace):

<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:tns="some/other/link" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="some/other/link" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="second_namespace">
<xs:complexType>
<xs:sequence>
//All the simple elements
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>


When I try to validate these using this validator: http://www.corefiling.com/opensource...aValidate.html it fails and gives me this error:
src-resolve: Cannot resolve the name 'q1:second_namespace' to a(n) 'element declaration' component.

All 3 files (xml and 2 generated schemas) are in the same directory.
What's the problem here? I tried 10 different schema generators and none of them made anything that would validate successfully.
I managed to get single namespace validation, but this is something else. Anyone know what I (or the schema generator) am(is) doing wrong?

Thanks in advance.