The following code causes a crash which kills Python, although if the
incorrect XMLSchema line is removed it works::
ActivePython 2.4.1 Build 245 (ActiveState Corp.) based on
Python 2.4.1 (#65, Mar 30 2005, 09:33:37) [MSC v.1310 32 bit (Intel)] on win32
>>> import lxml.etree
>>> rng = lxml.etree.parse(file("devicemap.rng"))
>>> lxml.etree.XMLSchema(rng)
Traceback (most recent call last):
File "<console>", line 1, in ?
File "xmlschema.pxi", line 32, in etree.XMLSchema.__init__
XMLSchemaParseError: Document is not valid XML Schema
>>> lxml.etree.RelaxNG(rng)
devicemap.rng is attached, and was generated from a DTD via Trang.
Tom
--
They're bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, FUN!
But the most wonderful thing about Immortals
Is there can be only one.