on 07-27-2005 2:39 PM
I am trying to create a new datatype called Activate based on an xsd file and this is the message I get ...
"Schema to be handled does not contain a definition of type Activate"
Anyone have any ideas why I can't use any of my external definitions in my mapping??
Here is a snippet of the xsd ...
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="envelope">
<xs:complexType>
<xs:sequence>
<xs:element ref="header"/>
<xs:element ref="body"/>
</xs:sequence>
<xs:attribute name="version" use="required" type="xs:NMTOKEN"/>
</xs:complexType>
</xs:element>
<xs:element name="header">
<xs:complexType>
<xs:sequence>
<xs:element ref="manifest"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="manifest">
<xs:complexType>
<xs:sequence>
<xs:element ref="authentication"/>
<xs:element ref="taxonomy"/>
</xs:sequence>
</xs:complexType>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andrew,
There are errors in your XSD :
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="envelope">
<xs:complexType>
<xs:sequence>
<xs:element ref="header"/>
<b><xs:element ref="body"/></b>
</xs:sequence>
<xs:attribute name="version" use="required" type="xs:NMTOKEN"/>
</xs:complexType>
</xs:element>
<xs:element name="header">
<xs:complexType>
<xs:sequence>
<xs:element ref="manifest"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<b><xs:element name="manifest"></b>
<xs:complexType>
<xs:sequence>
<b><xs:element ref="authentication"/></b>
<b><xs:element ref="taxonomy"/></b>
</xs:sequence>
</xs:complexType>
(1)There is no reference named <b>'body', 'authentication' and 'taxonomy'</b>
(2)It should be closed (either by <b><xs:element name="manifest"/></b> or <b></element></b> )
Hope this will help you.
Regards
Suraj
Hi Andrew,
please look into the following post
https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode1-6&contenttype=url&content=https://
Naveen
Hi Andrew,
Ok, then you may have maintained your refernces <i>body', 'authentication' and 'taxonomy'</i> but <b><xs:element name="manifest"></b> should be closed (either by <b><xs:element name="manifest"/> or </element></b> )
Apart from that i don't think there are any errors.
>>Is there any software I could use to "check" it?
I checked your xsd using XMLSPY software. You can also use Stylus Studio for this purpose. Both these softwares are available as free download (trial version).
Regards
Suraj
Hi Andrew,
Make sure the datatype name and the main element name in the external xsd is same.
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="..." targetNamespace="....">
<b><xsd:complexType name="Activate"></b>
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
92 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.