axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Yves Baudy <jy.ba...@free.fr>
Subject RE: Simple Types integration for DOC/LIT in C/C++ Stack
Date Tue, 16 Mar 2004 15:35:10 GMT

Susantha,

Your sample has wrong syntax. Value must be int value (I think).


  Ex:
       <s:simpleType name="StatusType">
         <s:restriction base="s:int">
           <s:enumeration value="1"/>
           <s:enumeration value="2"/>
         </s:restriction>
       </s:simpleType>

so it generate,
	
	typedef enum { 1, 2} StatusType;

And failed to compile.

Regards,

Jean-Yves

 >Ex:
 >      <s:simpleType name="StatusType">
 >        <s:restriction base="s:int">
 >          <s:enumeration value="MORE"/>
 >          <s:enumeration value="LESS"/>
 >        </s:restriction>
 >      </s:simpleType>
 >
 >we generate,
 >	typedef enum { MORE, LESS} StatusType;

Mime
View raw message