add: this.kProcessor.importStylesheet(this.mStyleDoc); this.mResDoc = this.kProcessor.transformToDocument(this.mSourceDoc); 
context:     doTransform : function()    {        this.kProcessor.reset();        this.kProcessor.importStylesheet(this.mStyleDoc);        this.mResDoc = this.kProcessor.transformToDocument(this.mSourceDoc);        //var proc = new XSLTProcessor;        //proc.importStylesheet(this.mStyleDoc);        //this.mResDoc = proc.transformToDocument(this.mSourceDoc);        try {            this.mRefDoc.normalize();            isGood = DiffDOM(this.mResDoc.documentElement,                             this.mRefDoc.documentElement,                             this.mMethod == 'html');        } catch (e) {            isGood = false;        };        dump("This succeeded. "+isGood+"\n");        isGood = isGood.toString();        for (var i=0; i<this.kObservers.length; i++) {            var aObs = this.kObservers[i];            if (typeof(aObs)=='object' && typeof(aObs.observe)=='function') {                aObs.observe(this.mResource, 'success', isGood);            }            else if (typeof(aObs)=='function') {                aObs(this.mResource, 'success', isGood);            }        }        if (this.mObserver) {            if (typeof(this.mObserver)=='object') {                this.mObserver.observe(this.mResource, 'success', isGood);            }            else {                this.mObserver(this.mResource, 'success', isGood);            }        }    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/094d7378ee44fbccdeac89cc8e772a5aa23bd3ab/buster-test.js/buggy/extensions/transformiix/resources/buster/buster-test.js