cancel
Showing results for 
Search instead for 
Did you mean: 

Schema to be handled does not contain a definition of type Activate

Former Member
0 Kudos

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??

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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>

former_member187339
Active Contributor
0 Kudos

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

Former Member
Former Member
0 Kudos

Hey Naveen - thanks for the link.. but for some reason it only takes me to the top level XI forum.

Hey S.R. The XSD I posted wasn't the whole thing just a sample of it. Is it still incorrect? Is there any software I could use to "check" it?

Thanks all

former_member187339
Active Contributor
0 Kudos

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

Answers (1)

Answers (1)

Former Member
0 Kudos

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