[xsde-users] xs:any and xs:anyAttribute
Boris Kolpackov
boris at codesynthesis.com
Thu Dec 29 09:22:13 EST 2011
Hi Jonathan,
Jonathan Haws <Jonathan.Haws at sdl.usu.edu> writes:
> My next question is how can I deal with name conflicts between two
> sub-schemas? For example, I have two sub-schemas; one called image
> and one called sensor. Both define a field of view (fov) attribute.
> When I try to link both of those sub-schemas into my test application,
> I get "multiple definition" errors. Can this be avoided (i.e. can I
> provide a way to ensure that the symbol names are unique)? Ideally
> I would have something like sensor_fov_pimpl::pre() and
> image_fov_pimpl::pre() instead of just fov_pimpl::pre() for both
> schemas. Can this be done?
You can use the --namespace-map XSD/e option[1] to place the generated
code for each sub-schemas into a separate C++ namespace. The names
then could be: sensor::fov_pimpl and image::fov_pimpl.
[1] http://www.codesynthesis.com/projects/xsde/documentation/xsde.xhtml
Boris
More information about the xsde-users
mailing list