[xsde-users] Code generation fails for restricted list type

Vrijnsen, Jeroen jeroen.vrijnsen at philips.com
Wed Feb 15 01:57:11 EST 2017


Hi,


Based on the XSDe 3.2.0 "hybrid list test",  I have created the following schema (I have just updated the existing sample code):

<schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:t="test" targetNamespace="test">
  <simpleType name="double-list">
    <list itemType="double" />
  </simpleType>

  <simpleType name="restricted-double-list">
    <restriction base="t:double-list">
      <minLength value="1"/>
      <maxLength value="8"/>
    </restriction>
  </simpleType>

  <complexType name="type">
    <sequence>
      <element name="restricted-double-list" type="t:restricted-double-list"/>
    </sequence>
  </complexType>

  <element name="root" type="t:type"/>
</schema>


and corresponding XML file:

<t:root xmlns:t="test">
  <restricted-double-list>0.0 0.1</restricted-double-list>
</t:root>


When I now compile the test, I get the following error:

test-pimpl.cxx: In constructor 'test::root_paggr::root_paggr()':
test-pimpl.cxx:209:52: error: expected unqualified-id before ')' token
     this->restricted_double_list_p_.parsers (this->);

I.e., code generation fails!!
How can this be resolved?

Kind regards,
Jeroen Vrijnsen



________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.


More information about the xsde-users mailing list