I just sent in a patch to libxml2 that provides python bindings for
local catalog support. It seems to work in simple tests, but I'd like
to test it with ZopeXMLMethods as well. What's the best way to go about
testing?
Looking through the unit tests, it appears that XML catalog support is
tied into URN resolving. Is this correct? I know that libxml2 supports
external resolvers and even has python bindings (eg.
libxml2.setEntityLoader(myResolver)), but ZopeXMLMethods doesn't seem to
use it. Has this been tried before? I presume we would just need to
write a resolver to map UR[LN]s into Zope objects. Are there some
pitfalls to watch out for?
-- Brent
-------------------------------------------------------------------------
"The programmer, like the poet, works only slightly removed from pure
thought-stuff. He builds his castles in the air, from air, creating
by exertion of the imagination. Few media of creation are so
flexible, so easy to polish and rework, so readily capable of
realizing grand conceptual structures."
-- Frederick Brooks, Jr., The Mythical Man Month
|