> Can you create a Bugzilla report and attach a small source code
example
> that reproduces it?
Done.
<rant>
Let me also take this time to advocate my Xalan-C Python bindings. The
75 LOC C++ example that I attached to my bug report is semantically
equivalent to this 10 LOC Python program:
import Pyana
transformer = Pyana.Transformer()
parsedSource = transformer.parseSource(
Pyana.URI("foo.xml"),
useXercesDOM=1)
nodeList = parsedSource.getDocument().documentElement.childNodes
assert len(nodeList) > 0
assert nodeList[0] is not None
My test suite has an EntityResolver implementation that is only 6 LOC
(including whitespace).
The ProblemListenerDefault implementation is 250 LOC (after removing the
copyright headers). My Python implementation is 35 LOC.
Imagine how productive Xalan-C development would be if we only did it
through Python! Imagine how small the test suite would be!
</rant>
Cheers,
Brian