Quantcast
Channel: SCN : All Content - Process Integration (PI) & SOA Middleware
Viewing all articles
Browse latest Browse all 7030

Namespace could not be referenced in the schema

$
0
0

Hi,

 

I am having the xsd in which I am creating some elements which are being referenced from their definition while in the Microsoft Visual Administration tool editor I could see that it gives message that Namespace could not be referenced while I have defined the element type  in the same xsd

 

 

e.g.

namespace definition

 

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:gen="http://www.abc/isd/General" targetNamespace="http://www.abc.uk/isd/General" elementFormDefault="qualified" attributeFormDefault="unqualified" version="2.10" id="general">

definition

<xsd:simpleType name="LEGAL_STATUS_TYPE">

<xsd:union>

   <xsd:simpleType>

    <xsd:restriction base="xsd:string">

     <xsd:enumeration value="Formal"/>

     <xsd:enumeration value="Informal"/>

    </xsd:restriction>

   </xsd:simpleType>

   <xsd:simpleType>

    <xsd:restriction base="xsd:string">

     <xsd:minLength value="1"/>

     <xsd:maxLength value="35"/>

    </xsd:restriction>

   </xsd:simpleType>

  </xsd:union>

</xsd:simpleType>

 

declaration

<xsd:element name="LegalStatus" type="gen:LEGAL_STATUS_TYPE" minOccurs="0" maxOccurs="unbounded"/>

 

Any idea why this problem is occurring?

 

Thanks,

Amit


Viewing all articles
Browse latest Browse all 7030

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>