EXTERNAL: Re: [xsd-users] XSD Forward Declaration Bug

Boris Kolpackov boris at codesynthesis.com
Fri Feb 17 09:43:47 EST 2017


Hi Andrew,

Thanks for sending the schemas. I took a look and the problem is
circular inclusion that involves inheritance. These is no way to
map such schemas in the file-per-schema mode and one has to use
the file-per-type mode instead. This post has more information on
the problem:

http://www.codesynthesis.com/~boris/blog/2008/02/13/codesynthesis-xsd-3-1-0-released/

I've compiled your schemas like this (note that now you only compile
the "root" schema of your vocabulary):

$ xsd cxx-tree --output-dir out --file-per-type data.xsd

Then the generated code compiles without any problems:

$ g++ out/*.cxx

Boris



More information about the xsd-users mailing list