[xsd-users] Compiling CSTA XSD files

Boris Kolpackov boris at codesynthesis.com
Tue Jun 9 14:18:04 EDT 2009


Hi Batya,

Batya Hacohen <Batya.Hacohen at tadirantele.com> writes:

> I am trying to compile the ECMA CSTA XSD files. I get the following:
> 
> d:\xmlCompiler\CstaXMLLib\xsdsrc\security.xsd:16:34: error: element name
> 'SecurityInfo/string' creates an unstable conflict when used as a type
> name
>
> [...]
>
> My Command line is: xsd cxx-tree --extern-xml-schema ../src/csta.hxx
> --generate-serialization  --generate-inline --generate-ostream
> --output-dir ".\src"  "$(InputPath)"
>  
> I also was trying to add --anonymous-regex "#.*  (.+)/(.+)#$1_$2#" but
> it did not work.

It should be: "#.* .* (.+)/(.+)#$1_$2#". With this regex I compiled all
the 251 schema files without problems. I also added these two options:

--root-element-all
--namespace-map http://www.ecma-international.org/standards/ecma-323/csta/ed4=CSTA4

If you don't need parsing/serialization functions for all the root elements,
then you can use one of the --root-element-* options to specify which ones
you need.

Boris




More information about the xsd-users mailing list