[xsd-users] taxonomy issue

Chang Chen Chang_Chen at sonic.com
Sun Mar 1 23:17:21 EST 2009


Hi Boris

 

I run the taxonomy example, but with following example.xml:

 

<ppl:catalog xmlns:ppl="http://www.codesynthesis.com/people"

 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

 
xsi:schemaLocation="http://www.codesynthesis.com/people people.xsd">

 

  <person>

    <name>Joe Dirt</name>

  </person>

 

  <person xsi:type="ppl:superman" can-fly="false">

    <name>James "007" Bond</name>

  </person>

 

  <person xsi:type="ppl:batman" can-fly="true" wing-span="10">

    <name>Bruce Wayne</name>

  </person>

 

</ppl:catalog>

 

The output is:

Joe Dirt

James "007" Bond

Flying superman Bruce Wayne

 

This is obvious issue!

 

I guess the reason should be the type_factory_initializer

 

  static

  const ::xsd::cxx::tree::type_factory_initializer< 0, char,
~~superman_base~~ >

  _xsd_superman_base_type_factory_init (

    "superman",

    "http://www.codesynthesis.com/people");

 

Should rename to 

 

  static

  const ::xsd::cxx::tree::type_factory_initializer< 0, char,
~~superman~~ >

  _xsd_superman_base_type_factory_init (

    "superman",

    "http://www.codesynthesis.com/people");

 

Thanks

Chang 




More information about the xsd-users mailing list