[xsd-users] Error when generating code from standard FMI xsd files v2.0

Boris Kolpackov boris at codesynthesis.com
Thu Jun 5 04:21:11 EDT 2014


Hi Xavier,

In the future please don't embed screenshots of your problems into
emails you send to the mailing list, as described in the posting
guidelines:

http://codesynthesis.com/support/posting-guidelines.xhtml

MIRABEL Xavier <xavier.mirabel at altran.com> writes:
 
>    1>  XSD\fmiType.xsd:51:= 29: error: element name 'fmiSimpleType/Real'
>    creates an unstable conflict w= hen used as a type name
> 
>    1>  XSD\fmiScalarVariab= le.xsd:54:22: info: conflicting type is
>    defined here
> 
>    1>  XSD\fmiType.xsd:51:= 29: info: use --anonymous-regex to resolve
>    this conflict

Well, as the diagnostics suggests, you can use the --anonymous-regex
option to resolve this. The option is described in the XSD compiler
command line manual (man pages):

http://codesynthesis.com/projects/xsd/documentation/xsd.xhtml

For example, you could use this variant:

--anonymous-regex "#.* .* (.+)/(.+)#\1\2#"

Boris



More information about the xsd-users mailing list