As commented in the pyxb-users list, there was a problem validation decimal types.
I submit a patch to get decimal-type working with Python Decimal.
Patch to use Python Decimal as base class
While Python's decimal package provides exact values, which is good, it also incorporates a concept of significant digits that is not present in XML's xs:decimal, which may not be good. In particular, it's going to complicate the translation between lexical and value representations.
I'm still concerned about how to reconcile the significant digits capabilities, so am pushing this off to the next major revision where incompatibilities are more likely to be allowed.
See additional information at https://sourceforge.net/mailarchive/message.php?msg_id=30592801
The fix for this is now in the next branch of the git repository. Because Python's decimal.Decimal class is not fully interoperable with its float class, this may result in user-level breakage.
Author: Peter A. Bigot <firstname.lastname@example.org>
Date: Wed Feb 5 12:44:53 2014 -0600
trac/91: Problem with fractionDigits violation
Change the value type for xs:decimal to be decimal.Decimal from its
former type of types.FloatType. This should make PyXB conformant with
xs:decimal in terms of the totalDigits and fractionDigits constraining
This is an interface change: some arithmetic operations between
datatypes.decimal and Python floats are now likely to fail.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.