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 Jeffrey Rodriguez <je...@hotmail.com> on 2000/09/05 04:15:45 UTC

RE: Valid XML Schema? Problem with Xerces 1.2 an duplicate elemen t de clarations?

Andrew,
I will investigate this tomorrow morning. I am copying this note to one of  
my colleagues, Eric Pen Ye, who is our Schema resident expert.

Thanks for reporting this.

                    Jeffrey Rodriguez
                    IBM Silicon Valley
                    XML development



>From: Andrew Fawcett <An...@coda.com>
>Reply-To: xerces-j-dev@xml.apache.org
>To: "'xerces-j-dev@xml.apache.org'" <xe...@xml.apache.org>, 
>xml-dev@lists.xml.org
>Subject: RE: Valid XML Schema? Problem with Xerces 1.2 an duplicate elemen 
>t de clarations?
>Date: Mon, 4 Sep 2000 12:05:34 +0100
>
>OK,
>
>Curious as to what the difference between my week old CVS source snapshot
>and the published source of 1.2, I ran a diff. The result was very little
>changes, and none at all in TraverseSchema.java (the source of my error).
>Hmmm????
>
>So I've now rebuilt Xerces from the published 1.2 source snapshot.... and 
>my
>problem goes away? Very confused! What's the difference between the jar 
>file
>I downloaded (that gives this error) and me building it (no error)? I use
>jdk1.2.2, does anyone know if this is a factor to all of this?
>
>BTW, the error I see is this.... "Schema error: duplicate element decl in
>the same scope : Title". It appears to come from TraverseSchema.java.
>
>Thanks for any help!
>
>-----Original Message-----
>From: Andrew Fawcett [mailto:Andrew.Fawcett@coda.com]
>Sent: 04 September 2000 09:33
>To: xml-dev@lists.xml.org; xerces-j-dev@xml.apache.org
>Subject: Valid XML Schema? Problem with Xerces 1.2 an duplicate element
>de clarations?
>
>
>Hi,
>
>I am having difficulty understanding if the following is valid XML Schema? 
>I
>was until the release of Xerces 1.2 running with a build from CVS (from 
>last
>week). This build processed and validated with my XML Schema without a
>problem. With Xerces 1.2, I get an error relating to the duplicate element
>declarations, in this case Title.
>
>Any ideas?
>
><xsd:schema xmlns:coda="http://www.coda.com"
>xmlns:xsd="http://www.w3.org/1999/XMLSchema"
>targetNamespace="http://www.coda.com" elementFormDefault="qualified">
>
><xsd:complexType name="Person">
>	<xsd:element name="Title" type="xsd:integer"/>
></xsd:complexType>
>
><xsd:complexType name="Book">
>	<xsd:element name="Title" type="xsd:string"/>
></xsd:complexType>
>
><xsd:element name="Root">
>	<xsd:complexType>
>		<xsd:element name="Person" type="coda:Person"/>
>		<xsd:element name="Book" type="coda:Book"/>
>	</xsd:complexType>
></xsd:element>
>
></xsd:schema>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-j-dev-help@xml.apache.org
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.