#153 Text moved to end in certain types of mixed classes

PyXB 1.2.1
Binding model
PyXB 1.1.4

A mixed element with a sequence of <xs:any> moves all of the embedded text to the end:

<v>Test <xhtml:b>something</xhtml:b> else<v>


<v><xhtml:b>something</xhtml:b>Test else</v>

1 Attachments


  • Harold Solbrig

    Harold Solbrig - 2012-06-28

    Sample that demonstrates the bug.

  • Peter A. Bigot

    Peter A. Bigot - 2012-06-28
    • status changed from new to accepted
    • version changed from PyXB 1.1.3 to PyXB 1.1.4
    • milestone changed from PyXB 1.1.4 to PyXB 1.1.5

    This isn't so much a bug as a design decision, because it's not clear how to represent mixed content in a way that allows PyXB to both preserve it and perform validation that might change its order.

    I've started a discussion on the mailing list to explain it and see how people would like to see it addressed. Please follow up there (I believe you're subscribed).

  • Peter A. Bigot

    Peter A. Bigot - 2012-08-30
    • milestone changed from PyXB 1.1.5 to PyXB 1.2.0
  • Peter A. Bigot

    Peter A. Bigot - 2012-11-08
    • milestone changed from PyXB 1.2.0 to PyXB 1.2.1
  • Peter A. Bigot

    Peter A. Bigot - 2012-12-15
    • status changed from accepted to closed
    • resolution set to fixed

    Considered fixed as of this one. Documentation update to follow via #171.

    commit 0317acf4b2f17c0066e93e1048301483f12d226a
    Author: Peter A. Bigot <pab@‌>
    Date: Sat Dec 15 12:19:32 2012 -0600

    Add test case for some border cases of trac/153


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

Sign up for the SourceForge newsletter:

No, thanks