Open barnesew opened 2 years ago
Same problem, this works:
<xs:sequence>
<xs:element name="element1" type="xs:int"></xs:element>
<!--<xs:element name="element2">
<xs:simpleType>
<xs:list itemType="Character">
</xs:list>
</xs:simpleType>
</xs:element> -->
<xs:element name="element3" type="xs:double"></xs:element>
<xs:element name="element4" type="Character"></xs:element>
<xs:element name="element5" >
<xs:simpleType>
<xs:list itemType="Character">
</xs:list>
</xs:simpleType>
</xs:element>
</xs:sequence>
But if I uncomment "element2" I get the expected 'IDENT', found '['
error.
Description
I am attempting to generate code based on some XSD files that utilize the "include" and "import" syntax. The problem is that I get the following error:
process error on schema/process/services/service/LibraryConfiguration.xsd: 14:7: expected 'IDENT', found '['
I did some investigating and discovered it happens when there are multiple
xs:list
types at the same level under anxs:complexType
. When I comment out two of the threexs:element
sections that contain thexs:list
, the code can be successfully generated.Example files used: process.zip
Steps to reproduce the issue:
xgen -i schema/process/ -p generatedxml -o output/ -l Go
process error on schema/process/services/service/LibraryConfiguration.xsd: 14:7: expected 'IDENT', found '['
Steps to fix the example files:
xs:element
sections).xgen -i schema/process/ -p generatedxml -o output/ -l Go
Output of
go version
:xgen version or commit ID:
Environment details (OS, physical, etc.):
Output of
go env
: