Menu

#154 Bare text in mixed sequences of type xs:any gets dropped

PyXB 1.2.1
closed
None
fixed
Binding model
major
PyXB 1.1.4
defect
2012-12-15
2012-06-28
No

A mixed element containing a sequence of xs:any drops the text completely if there isn't any embedded element

<v>Test</v>

becomes

<v/>

The attached file contains the solution that we have used to work around this for the time being.

1 Attachments

Discussion

  • Harold Solbrig

    Harold Solbrig - 2012-06-28

    unittest that reproduces the issue. Also contains a description of our current 1.4 fix

     
  • 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 can probably be fixed, but may have to wait on the resolution to #153.

     
  • Peter A. Bigot

    Peter A. Bigot - 2012-06-28

    I've confirmed this will have to wait on the resolution to #153 and the decision of how to maintain mixed content during Python manipulations. It's easy to identify elements of content() that have not been emitted, but not easy to determine whether those elements are still supposed to be there.

     
  • Peter A. Bigot

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

    Fix will require changes for #112 and is delayed to 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

    commit 135f09a86cbe0f5df2712b41399a1ff9148313b3
    Author: Peter A. Bigot <pab@‌>
    Date: Sat Dec 15 06:02:27 2012 -0600

    trac/154: bare text in mixed sequences gets dropped

     
MongoDB Logo MongoDB