[xsd-users] Specifying Element content for "anyType" Elements

Boris Kolpackov boris at codesynthesis.com
Fri Jan 16 08:40:53 EST 2015


Hi Andre,

Andre Vautour <andre.vautour at caris.com> writes:

> What ends up happening is that the templates (e.g. simple_type) get
> instantiated before the epilogue, which means the template
> instantiation doesn't know the definition of the type class.

Yes, that's an unfortunate interaction of several things.


> Any suggestions to work around that problem?

The way to make this work is to include the header in prologue,
not epilogue. You will also have to get rid of type_base and instead
include necessary headers from libxsd directly (<xsd/cxx/tree/elements.hxx>)
and also derive from xsd::cxx::tree::type instead of type_base.

Boris



More information about the xsd-users mailing list