#89 mistakenly attempt to generate enumerations in extended type

PyXB 1.1.3
Generation Model
PyXB 1.1.2

If a simple type with enumeration restrictions is further restricted without changing the enumeration list, the sub-type attempts to re-generate the parent type enumerations resulting in an error.

Two problems:

1. Enumerations should only be generated for the owner datatype.

2. Need to figure out what the facets on the restricted type should be: e.g., are the enumeration values listed in the base type still acceptable. See section 3.14.6/Derivation Valid (Restriction Simple)/1.3.2


  • Peter A. Bigot

    Peter A. Bigot - 2010-08-20
    • status changed from new to accepted

    (1) has been fixed with the patch in next. (2) requires research.

  • Peter A. Bigot

    Peter A. Bigot - 2011-05-21
    • status changed from accepted to closed
    • resolution set to fixed
    • milestone changed from PyXB 1.1.2 to PyXB 1.1.3

    Merged in changeset:19bc3b787f0083b45820edb216e2fc93f80b16ad

    commit cfd015ced4cf45fe2675f6ce2f80f98714440962
    Date: Sat May 21 10:55:01 2011 -0500

    trac/89: mistakenly attempt to generate enumerations in extended type

    Add a standalone unit test, and a verbose suite that verifies that it's the
    presence of an enumeration facet in the restricted type that affects
    enumeration inheritance.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks