This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When an attribute is dropped on an element that is of a simple type like 'xsd:boolean", the code generated should be <element name="e1"> <complexType> <simpleContent> <extension base="xsd:boolean"> <attribute name="a1" type="xsd:string"/> </extension> </simpleContent> </complexType> </element> instead of current <element name="e1"> <complexType> <attribute name="a1" type="xsd:string"/> </complexType> </element>
Fixed in 551 Files changed: /cvs/xml/axi/src/org/netbeans/modules/xml/axi/impl/DefaultSchemaGenerator.java new revision: 1.1.2.67.6.5; previous revision: 1.1.2.67.6.4 /cvs/xml/axi/test/unit/src/org/netbeans/modules/xml/axi/SchemaGeneratorTest.java new revision: 1.1.2.10.6.2; previous revision: 1.1.2.10.6.1
Reopening, in build: 070301_8 still see the same code generation that needs to be changed changed.
Looks like the fix is in 070301_5. Please re-verify.
Hi Tony, Can you please verify and close this bug. Thanks Ayub
Here is the detailed steps to verify this: - In DV, drop an element - change the element's type to some simple type - now, drop an attribute on the element.
Verified in Milestone8a. Using the steps provided creates the desired code generation.