cos-nonambig Error
Posted: Tue Aug 21, 2007 11:09 am
Hi, i'm having this problem with my XSD:
I don't know how i can solve it. I've been searching on this phorum, but i haven't any idea.
My xsd is so long, so i put the parts where i think there is the problem:
Thanks!!
Code: Select all
[ERROR] cos-nonambig: "":idAplicacion and "":idAplicacion (or elements from thei
r substitution group) violate "Unique Particle Attribution". During validation a
gainst this schema, ambiguity would be created for those two particles.
line 483 of firmaModificado.xsd
My xsd is so long, so i put the parts where i think there is the problem:
Code: Select all
.......
<xs:element name="parametros">
<xs:complexType>
<xs:choice>
<xs:group ref="wsfirma:Validar1"/>
<xs:group ref="wsfirma:Firma1"/>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:group name="Validar1">
<xs:sequence>
<xs:group ref="wsfirma:IdAplicacion"/>
<xs:group ref="wsfirma:FirmaElectronica"/>
<xs:group ref="wsfirma:FormatoFirma" minOccurs="0"/>
<xs:group ref="wsfirma:Hash" minOccurs="0"/>
<xs:group ref="wsfirma:AlgoritmoHash" minOccurs="0"/>
<xs:group ref="wsfirma:Datos" minOccurs="0"/>
</xs:sequence>
</xs:group>
<xs:group name="Firma1">
<xs:sequence>
<xs:group ref="wsfirma:IdAplicacion"/>
<xs:group ref="wsfirma:IdDocumento"/>
<xs:group ref="wsfirma:Firmante"/>
<xs:group ref="wsfirma:IdReferencia" minOccurs="0"/>
<xs:group ref="wsfirma:AlgoritmoHash" minOccurs="0"/>
<xs:group ref="wsfirma:FormatoFirma" minOccurs="0"/>
</xs:sequence>
</xs:group>
<xs:group name="IdAplicacion">
<xs:sequence>
<xs:element name="idAplicacion" type="xs:string"/>
</xs:sequence>
</xs:group>
.....