You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by anand awasthi <an...@usa.net> on 2001/02/01 23:57:59 UTC
schema error : undefined value for type encountered
hi,
When I try to validate following schema in xml spy 3.5 then i get following
error for elelment name="option" :
schema error : undefined value for type encountered
schema is as follows :
<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XML Spy v3.0.7 NT (http://www.xmlspy.com)-->
<!DOCTYPE schema PUBLIC "-//W3C//DTD XMLSCHEMA 19991216//EN" "" [
<!ENTITY % p ''>
<!ENTITY % s ''>
]>
<schema xmlns="http://www.w3.org/1999/XMLSchema">
<complexType name="fieldType" content="elementOnly">
<sequence>
<element name="option" type="optionType" minOccurs="0"
maxOccurs="unbounded"/>
</sequence>
<attribute name="column" type="string"/>
<attribute name="param" type="string" use="required"/>
<attribute name="inputtype" use="default" value="TEXT">
<simpleType base="NMTOKEN">
<enumeration value="TEXT"/>
<enumeration value="CHECKBOX"/>
<enumeration value="TEXTAREA"/>
<enumeration value="SELECT"/>
<enumeration value="HIDDEN"/>
<enumeration value="DATE"/>
<enumeration value="PASSWORD"/>
<enumeration value="RADIO"/>
</simpleType>
</attribute>
<attribute name="datatype" use="default" value="CHAR">
<simpleType base="NMTOKEN">
<enumeration value="CHAR"/>
<enumeration value="INTEGER"/>
<enumeration value="NUMERIC"/>
<enumeration value="DATE"/>
<enumeration value="TIMESTAMP"/>
</simpleType>
</attribute>
<attribute name="display" type="string"/>
<attribute name="displayKey" type="string"/>
<attribute name="size" type="string"/>
<attribute name="maxlength" type="string"/>
<attribute name="rows" type="string"/>
<attribute name="value" type="string"/>
<attribute name="defaultval" type="string"/>
<attribute name="sourcetable" type="string"/>
<attribute name="sourcekeycol" type="string"/>
<attribute name="sourcedatacol" type="string"/>
<attribute name="required" use="default" value="0">
<simpleType base="NMTOKEN">
<enumeration value="0"/>
<enumeration value="1"/>
</simpleType>
</attribute>
<attribute name="query" use="default" value="0">
<simpleType base="NMTOKEN">
<enumeration value="0"/>
<enumeration value="1"/>
</simpleType>
</attribute>
<attribute name="noupdate" use="default" value="0">
<simpleType base="NMTOKEN">
<enumeration value="0"/>
<enumeration value="1"/>
</simpleType>
</attribute>
<attribute name="keycolumn" use="default" value="0">
<simpleType base="NMTOKEN">
<enumeration value="0"/>
<enumeration value="1"/>
</simpleType>
</attribute>
<attribute name="hide" use="default" value="0">
<simpleType base="NMTOKEN">
<enumeration value="0"/>
<enumeration value="1"/>
</simpleType>
</attribute>
<attribute name="uppercase" use="default" value="0">
<simpleType base="NMTOKEN">
<enumeration value="0"/>
<enumeration value="1"/>
</simpleType>
</attribute>
</complexType>
<element name="form">
<complexType content="elementOnly">
<sequence>
<element name="field" type="fieldType" minOccurs="1"
maxOccurs="unbounded"/>
</sequence>
<attribute name="bundle" type="string"/>
<attribute name="xmlns:xsi" type="uriReference" use="default"
value="http://www.w3.org/1999/XMLSchema-instance"/>
<attribute name="xsi:noNamespaceSchemaLocation" type="string"/>
<attribute name="xsi:schemaLocation" type="string"/>
</complexType>
</element>
<complexType name="optionType" base="string">
<attribute name="value" type="string" use="required"/>
</complexType>
</schema>
Pls help me in locating the error.
thanks a lot
____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1