Probably "package" was incorrect word. I meant in "a separate from
LibXML2 piece of software". As far as I can understand the requirement is that people want to use xmllint/xsltproc with different IO layers *without* recompilation. If you are allowed to recompile and change code then you have no problem, just write your own callbacks and register them in LibXML2. However, it might not be the best approach if you use xmllint/xsltproc from shell scripts. About loading libraries from different OSes take a look at mozilla's NSPR function PR_LoadLibrary. It's a mess, no surprise but it's an option anyway. http://lxr.mozilla.org/nspr/source/nsprpub/pr/src/linking/prlink.c#1045Aleksey |