EXTERNAL: Re: [xsd-users] XSD Forward Declaration Bug
Chalk, Andrew J
andrew.j.chalk at lmco.com
Mon Feb 27 08:55:39 EST 2017
Cool! I just got back after a week's vacation but will take a look at these now.
Best,
- 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