Re: How to get transformiix working on Thunderbird?
Robert North <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.layout.xslt |
|---|---|
| Organization | Zen Internet |
| Message-ID | <[email protected]> |
Peter Van der Beken wrote: > Robert North wrote: > >> As a first step I have tried using the transformiix.so file from >> Mozilla 1.8a. This works to a degree, being able to create >> transformiix classes, with a few idiosyncrasies, but crashes when try >> to evaluate an XPath. > > > What version of Thunderbird? If you use Thunderbird 1.0 you need to get > Transformiix from the corresponding branch, for example from Firefox 1.0. > Yes, Thunderbird 1.0 So, as Thunderbird and Firefox are statically linked, this implies that I would need to get at least the transformiix components built dynamically. This raises the question: How to build dynamically so that the generated components are compatible with the Thunderbird 1.0 default build? >> var xslt = >> Components.classes["@mozilla.org/document-transformer;1?type=xslt"].getService(); >> >> var xpathEval = >> Components.classes["@mozilla.org/transformiix-domci-extender;1"].getService(); > > > > This is completely wrong, document-transformer;1?type=xslt is not a > service and transformiix-domci-extender;1 is only to be used by the DOM > code. Which I half guessed. All I expected to do (Before I realized I didn't have access to transformiix) was "document.evaluate(...)". This probably implies that the module initialization has gone horribly wrong, and these 2 calls somehow prod it into a more meaningful state. Thanks for replying -Rob.