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

Chalk, Andrew J andrew.j.chalk at lmco.com
Tue Feb 28 15:01:08 EST 2017


Thanks. That appears to fix the problem.

- A

-----Original Message-----
From: Boris Kolpackov [mailto:boris at codesynthesis.com] 
Sent: Friday, February 17, 2017 8:44 AM
To: Chalk, Andrew J (US N-AMERICAN CYBERSYSTEMS) <andrew.j.chalk at lmco.com>
Cc: xsd-users at codesynthesis.com
Subject: Re: EXTERNAL: Re: [xsd-users] XSD Forward Declaration Bug

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