Jump to content

Import Schema With No Namespace


scopley

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...