[xsd-users] problem with xsd/tree and tag <fractiondigits
value="2" fixed="true">
benjamin.guillemot at free.fr
benjamin.guillemot at free.fr
Tue Feb 2 07:32:33 EST 2010
Hi,
ok you're right, i'll check the custom type.
thank you.
Selon Boris Kolpackov <boris at codesynthesis.com>:
> Hi Benjamin,
>
> Benjamin Guillemot <benjamin.guillemot at free.fr> writes:
>
> > I think you don't implement the option < fixed > of the tag fractionDigits.
>
> According to the XML Schema spec, the fractionDigits facet specifies
> the maximum number of fraction digits, not the exact number (i.e., 1,
> 1.1, 1.11 are all valid values for fractionDigits=2). The fixed=true
> attribute only specifies that the value of this facet cannot be changed
> in further derivation by restribtion. So I believe the current
> implementation is correct.
>
>
> > If I have 1.00 as value i have 1 in my xml file but I want 1.00. (My client
> > need this).
> >
> > Do you think you'll deliver a patch or is there a way to do this properly?
>
> Take a look at the 'double' example in the examples/cxx/tree/custom/
> directory of XSD distribution. It describes a number of way to achieve
> what you want.
>
> Boris
>
More information about the xsd-users
mailing list