Hi all,
I've a problem with the exception BadTypeValueError. The exceptions
message is BadTypeValueError: fractionDigits violation for 0.00790287 in
STD_ANON_4.

I'm using PyXB-1.0.0 (full) in Ubuntu 10.04 with python2.6.

value has 8 fractiondigits (correct)

STD_ANON_4 class has 8L restriction, definiton:
# Atomic SimpleTypeDefinition
class STD_ANON_4 (pyxb.binding.datatypes.decimal):

    """No information
"""

    _ExpandedName = None
    _Documentation = None
STD_ANON_4._CF_totalDigits =
pyxb.binding.facets.CF_totalDigits(value=pyxb.binding.datatypes.positiveInteger(13L))
STD_ANON_4._CF_minInclusive =
pyxb.binding.facets.CF_minInclusive(value_datatype=STD_ANON_4,
value=pyxb.binding.datatypes.decimal(0.0))
STD_ANON_4._CF_fractionDigits =
pyxb.binding.facets.CF_fractionDigits(value=pyxb.binding.datatypes.nonNegativeInteger(8L))
STD_ANON_4._InitializeFacetMap(STD_ANON_4._CF_totalDigits,
   STD_ANON_4._CF_minInclusive,
   STD_ANON_4._CF_fractionDigits)

I'm interpreting that the STD_ANON_4 could have a 8 fraction digits,
isn't it?

If I check the xml file with xmlstarlet[1], the xml is valid.

Cheers,


[1] http://xmlstar.sourceforge.net/

-- 
Eduard Carreras i Nadal <[email protected]>
Tel. 972 911 566 - Fax 972 217 384
GISCE Enginyeria S.L.U.


------------------------------------------------------------------------------

_______________________________________________
pyxb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyxb-users

Reply via email to