I don't know if this is a bug in Castor or XML Spy, but here is the
problem:

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

Attachment: castortest.zip
Description: Zip compressed data

Reply via email to