#84 Schema with <xsd:any namespace="##local" processContents="skip" minOccurs="0" maxOccurs="unbounded"/> fails when executed

PyXB 1.1.2
Content model
PyXB 1.1.1

This is a reduced test case based on the Cisco CallManager Administrative XML (AXL) XSD set.

Generate with: pyxbgen -u example.xsd -m example
Test with: python -c "from example import *"

The Python interpreter exits with:
[michael@heresy development]$ python -c "from example import *"
Traceback (most recent call last):

File "<string>", line 1, in <module>
File "example.py", line 66, in <module>

pyxb.binding.content.ContentModelTransition(next_state=1, term=pyxb.binding.content.Wildcard(process_contents=pyxb.binding.content.Wildcard.PC_skip, namespace_constraint=set(None))),

TypeError: 'NoneType' object is not iterable

I've attached the example XSD which triggers this behavior.

1 Attachments


  • Michael van der Westhuizen

    Example XSD file which triggers the bug

  • Peter A. Bigot

    Peter A. Bigot - 2010-05-27
    • status changed from new to closed
    • resolution set to fixed
    • milestone set to PyXB 1.1.2

    Code assumed the set() function was variadic. Fixed in trac/84, merged to next, will appear in 1.1.2.

    Note that this fix does not mean that namespace constraints are used during wildcard validation, just that the schema will generate code that runs.


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

Sign up for the SourceForge newsletter:

No, thanks