AIML Schema: http://209.168.21.76/CommunityStarte...loads/258.aspx
I have a Schema (in the link above) that I've been trying to make work in
VS2003 for a while now and just can't seem to get right. I didn't design the
schema and to tell the truth, most of it is beyond my rudimentary
understanding of XML.
So far, the main problem I've run into is the simpleType below:
<simpleType name="VariableN ame">
<restriction base="string">
<attribute name="name" type="string" />
</restriction>
</simpleType>
I understand that attributes can't be embedded in simpleType's and I'm not
really sure what the attribute is supposed to accomplish anyway. The first
thing I did to try and understand the problem is to remove the attribute. In
an XML file with the AIML targetSchema this led to the error "Undefined
complexType aiml:VariableNa me is used as a base for complex type
restriction." in the complexType below.
<complexType name="SetVar">
<simpleConten t>
<restriction base="aiml:Vari ableName" />
</simpleContent>
</complexType>
The next step was to convert VariableName to a complexType:
<complexType name="VariableN ame">
<simpleConten t>
<restriction base="string" />
</simpleContent>
</complexType>
This led to the error "Undefined complexType
http://www.we.org/2001/XMLSchema:string is used as a base for complex type
restriction" in VariableName. In a final act of desperation I replaced the
attribute from the original simpleType:
<complexType name="VariableN ame">
<simpleConten t>
<restriction base="string">
<attribute name="name" type="string" />
</restriction>
</simpleContent>
</complexType>
I'm not sure why the attribute was accepted here but it was. However, the
error was the same as above: Undefined complexType string.
Can somebody help me with this thing? It's starting to make me a little
crazy...