[xsd-users] Implement arbitrary-precision custom types for
schema builtin types integer and decimal
Jeroen N. Witmond [Bahco]
jnw at xs4all.nl
Mon Dec 1 09:34:39 EST 2008
Boris Kolpackov <boris at codesynthesis.com> writes:
> Jeroen N. Witmond [Bahco] <jnw at xs4all.nl> writes:
>
>> With xsd version 3.2.0, I'm trying to implement arbitrary-precision
>> custom
>> types for the schema builtin types integer and decimal, but I'm running
>> into some problems.
>
> Your infinite-oldfashioned example is the way it should be
> done (there is nothing oldfashioned in this approach, BTW).
> The infinite example tries to do it via traits which is only
> used when mapping to fundamental C++ types.
All problems have been fixed, and I have completely rewritten the webpage
describing the customization of xsd cxx-parser and cxx-tree for
arbitrary-length numerics. See
http://www.xs4all.nl/~jnw/codesynthesis/arbitrary-precision/
This includes the mapping for cxx-tree using traits, but I did have to
make a small change in the generated code to get it to work. :)
Jeroen.
More information about the xsd-users
mailing list