I have an error, can someone help me?
I use the following declaration on schema that is in another archive and 
I include the archive in my schema with the following mode

<xsd:include schemaLocation="ibRef.xsd"/>

------------------------------------------------------------

        <xsd:complexType name="TipoCodigoPostal">
                <xsd:annotation>
                        <xsd:documentation>C�digo postal ( tipo complexo
)</xsd:documentation>
                </xsd:annotation>
                <xsd:simpleContent>
                        <xsd:extension base="xsd:string">
                                <xsd:maxLength value="10"/>
                                <xsd:attribute name="pais" use="required">
                                        <xsd:simpleType>
                                                <xsd:restriction
base="xsd:string">
                                                        <xsd:maxLength
value="3"/>
                                                </xsd:restriction>
                                        </xsd:simpleType>
                                </xsd:attribute>
                        </xsd:extension>
                </xsd:simpleContent>
        </xsd:complexType>

and when I parse the document with xerces give me the error below:


[Error] :2:205: Schema error: ComplexType 'TipoCodigoPostal': Only
annotations a
nd attributes are allowed in the content of an EXTENSION element for a
complexTy
pe with simpleContent.

can someone help me?

thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to