ISSUE-51
attribute and element name clashes
- State:
- CLOSED
- Product:
- Advanced
- Raised by:
- Paul Downey
- Opened on:
- 2006-05-12
- Description:
The following schema caused a name clash in a Java databinding tool: <xs:complexType name="Product"> <xs:sequence> <xs:element name="name" type="xs:string"/> <xs:element name="inStock" type="xs:int"/> </xs:sequence> <xs:attribute name="name" type="xs:string" /> </xs:complexType> Should we advise against using the same names for elements and attributes directly under the same element in Basic patters?
- Related emails:
- ISSUE-51: attribute and element name clashes (from dean+cgi@w3.org on 2006-05-12)
- RE: ISSUE-51: attribute and element name clashes (from jon.calladine@bt.com on 2006-05-12)
- Minutes from XML Schema Patterns for Databinding F2F 22-23 May 2006 (from paul.downey@bt.com on 2006-06-02)
- Minutes: XML Schema Patterns for Databinding F2F 31st July - 1st August 2006 (from paul.downey@bt.com on 2006-08-01)
- ACTION-80: review ISSUES list against the edtodo list (from paul.downey@bt.com on 2006-10-12)
Related notes:
2006-08-01: Moved to advanced and closed following discussion at Apsley f2f. Note that we cannot easily write a pattern to detect this if type is extended with Attributes