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 li...@ecommony.com on 2000/09/19 18:57:48 UTC
Very simple schema question
Hello all
i have a schema problem that may not be totally relevant to this group, but
i'll appreciate it if somebody knows the answer:
this kind of schema:
<complexType name="requestType">
<group>
<element name="response" type="globalResponseType"/>
</group>
<attribute name="version" type="string" use="required"/>
</complexType>
<complexType name="senderType">
<group>
<element name="response" type="otherResponseType"/>
</group>
</complexType>
does not validate because it has "duplicate element declaration in the same
scope". Why does this error occur ? the two response elements are under
different roots and so it shouldn't pose a problem (i think) to have them of
different type
any ideas ? thanks, lior shapira.
Re: Very simple schema question
Posted by Eric Ye <er...@locus.apache.org>.
Very simple schema questionYou must be using Xerces1.1.3 or earlier versions, Please download Xerces1.2.0 and give it a try again.
_____
Eric Ye * IBM, JTC - Silicon Valley * ericye@locus.apache.org
----- Original Message -----
From: lior@ecommony.com
To: xerces-j-dev@xml.apache.org
Sent: Tuesday, September 19, 2000 9:57 AM
Subject: Very simple schema question
Hello all
i have a schema problem that may not be totally relevant to this group, but i'll appreciate it if somebody knows the answer:
this kind of schema:
<complexType name="requestType">
<group>
<element name="response" type="globalResponseType"/>
</group>
<attribute name="version" type="string" use="required"/>
</complexType>
<complexType name="senderType">
<group>
<element name="response" type="otherResponseType"/>
</group>
</complexType>
does not validate because it has "duplicate element declaration in the same scope". Why does this error occur ? the two response elements are under different roots and so it shouldn't pose a problem (i think) to have them of different type
any ideas ? thanks, lior shapira.