Hello,
yes it is right. X-Application can not handle schemas that contains an element declaration twice.
Could you propose the customer to change the schema?
Possible solution:
<xs:schema ...>
...
<xs:element name = "Content">
<xs:complexType>
<xs:sequence>
<xs:element ref = "Page" maxOccurs = "unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name = "DisplayContent">
<xs:complexType>
<xs:sequence>
<xs:element ref = "Page" maxOccurs = "unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
...
<xs:element name = "Page">
<xs:annotation>
<xs:appinfo>
<tsd:elementInfo>
<tsd:physical>
<tsd:native>
<tsd:index>
<tsd:text/>
</tsd:index>
</tsd:native>
</tsd:physical>
</tsd:elementInfo>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:simpleContent>
<xs:extension base = "xs:string">
<xs:attribute name = "PageNo" type = "xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
</xs:schema>
With this modification I was able to generate an application with the generator of X-Application 3.1.3.
I attach the schema as I used it to generate the application.
Bye,
Christian.
senate2.tsd (5.31 KB)
#Tamino#webMethods#API-Management