¿Qué falla en este esquema?
Publicado por José Andrés Pizarro (1 intervención) el 13/12/2007 11:51:18
Cuando intento validar est esquema me da error. Alguien me puede proponer una solución?
He omitido cabecera y otros elementos a propósito.
Concretamente el error lo recibo en la definition del typo xmldisplaydefinition:
Invalid per cvc-complex-type.1.2.4:
element {http://www.w3.org/2001/XMLSchema}:all not allowed here (5) in element {http://www.w3.org/2001/XMLSchema}:complexType, expecting
<xsd:complexType name="MetaInformation">
<xsd:sequence>
<xsd:element name="description" type="xsd:string" default=""/>
<xsd:element name="keyword" type="xsd:string" maxOccurs="unbounded" minOccurs="0" default="" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name = "xmldisplaydefinition">
<xsd:attribute name="identifier" type="xsd:string"/>
<xsd:attribute name="kindOfDisplay" type="xsd:string"/>
<xsd:all>
<xsd:element name="metaInformation" type="MetaInformation" />
</xsd:all>
</xsd:complexType>
Espero que alguien pueda responderme. Gracias!
He omitido cabecera y otros elementos a propósito.
Concretamente el error lo recibo en la definition del typo xmldisplaydefinition:
Invalid per cvc-complex-type.1.2.4:
element {http://www.w3.org/2001/XMLSchema}:all not allowed here (5) in element {http://www.w3.org/2001/XMLSchema}:complexType, expecting
<xsd:complexType name="MetaInformation">
<xsd:sequence>
<xsd:element name="description" type="xsd:string" default=""/>
<xsd:element name="keyword" type="xsd:string" maxOccurs="unbounded" minOccurs="0" default="" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name = "xmldisplaydefinition">
<xsd:attribute name="identifier" type="xsd:string"/>
<xsd:attribute name="kindOfDisplay" type="xsd:string"/>
<xsd:all>
<xsd:element name="metaInformation" type="MetaInformation" />
</xsd:all>
</xsd:complexType>
Espero que alguien pueda responderme. Gracias!
Valora esta pregunta


0