context: function BX_init() {    BX_schema_init();    BX_xmlTR = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformfile']");    BX_xmlTR.includes   = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformfile']");    BX_xmlTR.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xmltransformfile']","xsltParamName");    BX_xslTR  = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xsltransformfile']");    BX_xmlTRBack = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xmltransformbackfile']");    BX_xmlTRBack.includes = BX_config_getContentMultiple("/config/files/transform/includes/file[@name='BX_xmltransformbackfile']");    BX_xslViewSource = new BXE_XmlDocument("/config/files/transform/file[@name='BX_xslViewSourceFile']");    /* not implemented yet */    //    var BX_xslViewSourceFile_method = BX_config_getContent("/config/files/transform/file[@name='BX_xslViewSourceFile']/@method");    BX_xml = new BXE_XmlDocument("/config/files/input/file[@name='BX_xmlfile']");    BX_xsl = new BXE_XmlDocument("/config/files/input/file[@name='BX_xslfile']");    BX_xsl.xsltParams = BX_config_getContentMultipleAssoc("/config/files/transform/parameters/param[@name='BX_xslfile']","xsltParamName");    BX_posturl = new BXE_XmlDocument("/config/files/output/file[@name='BX_posturl']");    var node;    var options = BX_config_getNodes("/config/options/option");    while (node = options.iterateNext()) {        if (node.firstChild) {            var nodeValue = BX_config_translateUrl(node);            //replace quotes typed in config.xml. can go away later.            nodeValue = "'" + nodeValue.replace(/^'/,"").replace(/'$/,"") + "'";            // the == "'0'" operator should go away later as will, it            //  should make transitioning easier.            if (nodeValue == "'false'" || nodeValue == "'0'") {                nodeValue = false;            } else if (nodeValue ==  "'true'") {                nodeValue = true;            }            eval(node.getAttribute("name") + ' = ' +   nodeValue  );        } else {            eval(node.getAttribute("name") + " = ''");        }    }    BX_init_page();    BX_init_buttonBar();    BX_infobar = document.getElementById("BX_infobar");    BX_infotext = document.getElementById("BX_infotext");    BX_infotext2 = document.getElementById("BX_infotext2");    BX_infoerror = document.getElementById("BX_infoerror");    BX_infoerror_timeout = false;    BX_init_adjustButtonbar();    window.onresize = BX_init_adjustButtonbar;    BX_infobar.addEventListener("mouseup", BX_event_buttonbarMouseUp, false);    BX_xml.load();    BX_xsl.load();    BX_xmlTR.load();    BX_xslTR.load();    BX_xmlTRBack.load(BX_xmlTRBack_loaded);    BX_transformLocation =  document.getElementById("transformlocation");    BX_xsltProcessor = new XSLTProcessor();    document.getElementsByNameAndAttribute = getElementsByNameAndAttribute;    BX_xml.doc.getElementById = BX_getElementById;    //temporary ranges. to be used in some functions    /* it is used in BX_insertContent(), so instead of creating it    * everytime we insert content, just do it once here     */    BX_tmp_r1 = document.createRange();    BX_tmp_r2 = document.createRange();    BX_popup = document.getElementById("BX_popup");}
meta: 791	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/791/ffb59be12713348724e09814524fa70b5200d06e/bitfluxeditor_core.js/buggy/src/webapp/lenya/resources/misc/bitflux/bxe/js/bitfluxeditor_core.js