W3C home > Mailing lists > Public > public-xsd-databinding@w3.org > May 2006

ISSUE-51: attribute and element name clashes

From: Databinding Issue Tracker <dean+cgi@w3.org>
Date: Fri, 12 May 2006 13:33:13 +0000 (GMT)
To: public-xsd-databinding@w3.org
Message-Id: <20060512133313.2852333205@kearny.w3.org>

ISSUE-51: attribute and element name clashes


Raised by: Paul Downey
On product: Basic

The following schema caused a name clash in a 
Java databinding tool:

<xs:complexType name="Product">
    <xs:element name="name" type="xs:string"/>
    <xs:element name="inStock" type="xs:int"/>
  <xs:attribute name="name" type="xs:string" />

Should we advise against using the same names
for elements and attributes directly under the same element
in Basic patters?
Received on Friday, 12 May 2006 13:33:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:58:12 UTC