scopley Posted February 11, 2010 Share Posted February 11, 2010 I have created 2 schemas. I would like to import one into the other without a namespace. I believe that i have my xsd:schema tag set correctly for the import however when I open the schema it can't find the elements that are referenced inside the imported schema.Here is the top part of the original schema: <?xml version="1.0"?><xsd:schema xmlns="http://cgweb.arsc.uscg.mil/custom/doctypes/mm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://cgweb.arsc.uscg.mil/custom/doctypes/mm" elementFormDefault="unqualified"> <xsd:import schemaLocation="calstable.xsd"/> Here is the top part of the imported schema: <?xml version="1.0"?><xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> Any help is greatly appreciated. Link to comment Share on other sites More sharing options...
boen_robot Posted February 16, 2010 Share Posted February 16, 2010 As long as both schemas reference the same namespace, you should be able to instead use xsd:include. Link to comment Share on other sites More sharing options...
scopley Posted February 16, 2010 Author Share Posted February 16, 2010 Thanks so much for your response. The calstable.xsd is a generic table schema that I want to import into several other schemas that utilize the same table structure. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.