[xsd-users] Accessing xml:base: Migration to xsd 3.2.0

Jeroen N. Witmond [Bahco] jnw at xs4all.nl
Fri Nov 28 04:55:31 EST 2008


Greetings!

While testing my work on the xml namespace[1][2] with xsd version
3.2.0 (I should have done this sooner) I've come across a question and
a problem.

- In file custom-xmlbase/xml-base.cpp[1, item 3][3] I noticed that in
  constructor 'xml_base::xml_base(::xsd::cxx::tree::type& type,
  ::xml_schema::flags f)' the call to '::xsd::cxx::xml::dom::parser<
  wchar_t > p' now takes two additional boolean arguments. I assume
  based on the code generated by xsd for program explicit[1, top left]
  that in this case these booleans should be true.  Is this correct?

- When compiling the sources for programs parser-datamodel[2, bottom
  left] and parser-anytype[2, bottom right] I get warnings and errors
  like:

    virtual base
    ‘xsd::cxx::parser::non_validating::simple_content<char>’
    inaccessible in ‘metadox::bar_type_pimpl’ due to ambiguity

    virtual base
    'xsd::cxx::parser::non_validating::complex_content<char>’
    inaccessible in ‘metadox::foo_type_pimpl’ due to ambiguity

    'xsd::cxx::parser::parser_base<char>' is an ambiguous base of
    'metadox::foo_type_pimpl'

  I've no idea how I can fix this.

Regards,

Jeroen.

[1] http://www.xs4all.nl/~jnw/codesynthesis/xmlnamespace/index.html
[2] http://www.xs4all.nl/~jnw/codesynthesis/xmlnamespace/parser.html
[3]
http://www.xs4all.nl/~jnw/codesynthesis/xmlnamespace/custom-xmlbase/custom-xmlbase.cpp





More information about the xsd-users mailing list