[xsd-users] xs:double truncation
Boris Kolpackov
boris at codesynthesis.com
Sun Jun 22 13:42:28 EDT 2008
Hi Aaron,
Aaron Bray ARA/SED <abray at ara.com> writes:
> Ok, I figured it out, I am not sure how this works (there is explanation
> on your wiki, but it still hurts my head...)
It might be a bit confusing in case of customizing built-in XML Schema
types because there are two new features used at the same time:
(1) By default the C++ mapping for XML Schema built-in types is
placed into each generated header file. But you can instruct
the XSD compiler to generate this mapping into a separate
file and then include that file in other generated files.
You generate such a header with the --generate-xml-schema
option and include it in other generated headers with
--extern-xml-schema (for more information on the semantics
of these options see the XSD Compiler Command Line Manual[1]).
(2) You can customize the XML Schema built-in types with the
--custom-type option as described in the C++/Tree Mapping
Customization Guide[2]. However, you can only do this when
you are generating the XML Schema built-in types mapping
into a separate file as described in (1).
So if you want to customize a built-in type in your application you
have to make two changes (1 and 2 above) at the same time.
[1] http://www.codesynthesis.com/projects/xsd/documentation/xsd.xhtml
[2] http://wiki.codesynthesis.com/Tree/Customization_guide
Boris
More information about the xsd-users
mailing list