Schema with <xsd:any namespace="##local" processContents="skip"...
Brought to you by:
pabigot
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.
Example XSD file which triggers the bug
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.