Svetlana, Thanks for the bug report and the test case. I believe we have already fixed this: http://scm.codesynthesis.com/?p=xsd/xsd.git;a=commit;h=169b95d1c079bcc12c2a9bc881ecf2cccf0b6029 If you would like, I can build you a pre-release binary for Linux with this fix. Boris