[xsd-users] G2S protocol with confilicting type

Michal Widera michal_widera at poczta.onet.pl
Mon Sep 15 05:20:21 EDT 2008


Dear XSD-Users and CodeSynthesis,

I'm try to use XSD on G2S protocol.
Protocol is coded as xsd set and is free available on Gaming Standards website:
http://www.gamingstandards.com/pdfs/standards/G2S_v1.0.3.zip
(in this zip there is a full schema with set of xsd)

Unfortunately i get some errors after issuing following command:
xsd cxx-tree --root-element g2sMessage --type-naming ucc g2sMessage.xsd

g2sGamePlay.xsd:59:67: error: attribute name 'p_wagerCategory/maxWagerCredits' creates an unstable conflict when used as a type name
g2sCabinet.xsd:138:19: info: conflicting type is defined here
g2sGamePlay.xsd:59:67: info: use --anonymous-regex to resolve this conflict
g2sGamePlay.xsd:59:67: info: and don't forget to pass the same option when translating 'g2sGamePlay.xsd' and all the schemas that refer to it
...
...
...
g2sCentral.xsd:79:66: error: attribute name 'p_centralProfile/minLogEntries' creates an unstable conflict when used as a type name
g2sGamePlay.xsd:80:19: info: conflicting type is defined here
g2sCentral.xsd:79:66: info: use --anonymous-regex to resolve this conflict
g2sCentral.xsd:79:66: info: and don't forget to pass the same option when translating 'g2sCentral.xsd' and all the schemas that refer to it

I was trying to use following annonymous-regex 
xsd cxx-tree --root-element g2sMessage --type-naming ucc --anonymous-regex '#.*  (.+)/(.+)#$1_$2#' g2sMessage.xsd 
But this fail also.

Is there any way to resolve this problem?

Best Regards,
Michal Widera




More information about the xsd-users mailing list