Jump to content

Import Schema With No Namespace

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 post
Share on other sites

As long as both schemas reference the same namespace, you should be able to instead use xsd:include.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...