J
jacksuyu
In XMLSpy, I got error message in my xsd:
This schema doesn't appear to be valid by itself:<xs:element
ref='MyConfig'> makes the content model non-deterministic.
If I remove the minOccurs and maxOccurs, then the validations passed.
I am a little confused about the error message.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:fic="fisc:ficcore:system" xmlns="fisc:ficcore:system"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="fisc:ficcore:system" elementFormDefault="qualified">
<xs:element name="MyConfig">
<xs:complexType>
<xs:all>
<xs:element name="AliasName" type="xs:string"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:complexType name="MyBigConfigType">
<xs:sequence>
<xs:element ref="MyConfig" minOccurs="0" maxOccurs="unbounded" />
<xs:any minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
This schema doesn't appear to be valid by itself:<xs:element
ref='MyConfig'> makes the content model non-deterministic.
If I remove the minOccurs and maxOccurs, then the validations passed.
I am a little confused about the error message.
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:fic="fisc:ficcore:system" xmlns="fisc:ficcore:system"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="fisc:ficcore:system" elementFormDefault="qualified">
<xs:element name="MyConfig">
<xs:complexType>
<xs:all>
<xs:element name="AliasName" type="xs:string"/>
</xs:all>
</xs:complexType>
</xs:element>
<xs:complexType name="MyBigConfigType">
<xs:sequence>
<xs:element ref="MyConfig" minOccurs="0" maxOccurs="unbounded" />
<xs:any minOccurs="0"/>
</xs:sequence>
</xs:complexType>
</xs:schema>