Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 0.9.3.9
-
Fix Version/s: 1.2
-
Component/s: XML code generator
-
Labels:None
-
Environment:Operating System: All
Platform: PC
-
Bugzilla Id:887
-
Testcase included:yes
-
Number of attachments :
Description
Reported by Ozgur Balsoy:
I have an element X which is extended from xsd:string and defaulted to a
value "Y"
I have another element Z which contains X as a reference (or not, it does not
matter). When I generate the source code for this schema, X is initialized in Z
in a very weird way:
X _x = new X("Y");
There is no X(string) constructor generated. Is this a valid schema?
I have attached the schema and the generated code. I have tried it with 0.9.3.9
and today's CVS copy.
Ozgur
Created an attachment (id=96)
Schema + generated files