I tried pyxbgen from PyXB 1.2.1 on Chemical Markup Language Schema 3 from
http://www.xml-cml.org/schema/. Unfortunately, I received the following
error message:
$ pyxbgen schema.xsd
Exception generating bindings: http://www.w3.org/1999/xhtml has no category
typeDefinition
Traceback (most recent call last):
File "/home/u549486/apps/virtualenv-1.9.1/myVE/bin/pyxbgen", line 73, in
<module>
modules = generator.bindingModules()
File
"/home/u549486/apps/virtualenv-1.9.1/myVE/lib/python2.6/site-packages/pyxb/binding/generate.py",
line 2727, in bindingModules
self.__resolveComponentDependencies(reset)
File
"/home/u549486/apps/virtualenv-1.9.1/myVE/lib/python2.6/site-packages/pyxb/binding/generate.py",
line 2587, in __resolveComponentDependencies
pyxb.namespace.resolution.ResolveSiblingNamespaces(namespaces)
File
"/home/u549486/apps/virtualenv-1.9.1/myVE/lib/python2.6/site-packages/pyxb/namespace/resolution.py",
line 301, in ResolveSiblingNamespaces
if not ns.resolveDefinitions(allow_unresolved=True):
File
"/home/u549486/apps/virtualenv-1.9.1/myVE/lib/python2.6/site-packages/pyxb/namespace/resolution.py",
line 222, in resolveDefinitions
resolvable._resolve()
File
"/home/u549486/apps/virtualenv-1.9.1/myVE/lib/python2.6/site-packages/pyxb/xmlschema/structures.py",
line 4392, in _resolve
self.__initializeFromList(candidate, **kw)
File
"/home/u549486/apps/virtualenv-1.9.1/myVE/lib/python2.6/site-packages/pyxb/xmlschema/structures.py",
line 4066, in __initializeFromList
return self.__completeResolution(body, self.VARIETY_list, self._DA_list)
File
"/home/u549486/apps/virtualenv-1.9.1/myVE/lib/python2.6/site-packages/pyxb/xmlschema/structures.py",
line 4270, in __completeResolution
self.__itemTypeDefinition = it_en.typeDefinition()
File
"/home/u549486/apps/virtualenv-1.9.1/myVE/lib/python2.6/site-packages/pyxb/namespace/__init__.py",
line 98, in __getattr__
category_value =
self.namespace().categoryMap(name).get(self.localName())
File
"/home/u549486/apps/virtualenv-1.9.1/myVE/lib/python2.6/site-packages/pyxb/namespace/__init__.py",
line 295, in categoryMap
raise pyxb.NamespaceError(self, '%s has no category %s' % (self,
category))
NamespaceError: http://www.w3.org/1999/xhtml has no category typeDefinition
I do not know what to make of "NamespaceError:
http://www.w3.org/1999/xhtmlhas no category typeDefinition" Please let
me know if you have any
suggestions for debugging this.
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
pyxb-users mailing list
pyxb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyxb-users