rem: if (!helpFileDS) { try { helpFileDS = RDF.GetDataSourceBlocking(helpFileURI); } catch (e if (e.result == NSRESULT_RDF_SYNTAX_ERROR)) { log("Help file: " + helpFileURI + " contains a syntax error."); } catch (e) { log("Help file: " + helpFileURI + " was not found."); 
add: if (!helpFileDS) { try { helpFileDS = RDF.GetDataSourceBlocking(helpFileURI); } catch (e if (e.result == NSRESULT_RDF_SYNTAX_ERROR)) { log("Help file: " + helpFileURI + " contains a syntax error."); } catch (e) { log("Help file: " + helpFileURI + " was not found."); }  try { document.title = getAttribute(helpFileDS, RDF_ROOT, NC_TITLE, ""); helpBaseURI = getAttribute(helpFileDS, RDF_ROOT, NC_BASE, helpBaseURI);   defaultTopic = getAttribute(helpFileDS, RDF_ROOT, NC_DEFAULTTOPIC, "welcome");  var panelDefs = helpFileDS.GetTarget(RDF_ROOT, NC_PANELLIST, true); RDFContainer.Init(helpFileDS, panelDefs); var iterator = RDFContainer.GetElements(); while (iterator.hasMoreElements()) { var panelDef = iterator.getNext(); var panelID = getAttribute(helpFileDS, panelDef, NC_PANELID, null);  var datasources = getAttribute(helpFileDS, panelDef, NC_DATASOURCES, "rdf:none"); datasources = normalizeLinks(helpBaseURI, datasources);  var panelPlatforms = getAttribute(helpFileDS, panelDef, NC_PLATFORM, platform); panelPlatforms = panelPlatforms.split(/\s+/);  if (panelPlatforms.indexOf(platform) == -1) continue;   if (panelID == "search") { emptySearchText = getAttribute(helpFileDS, panelDef, NC_EMPTY_SEARCH_TEXT, emptySearchText); emptySearchLink = getAttribute(helpFileDS, panelDef, NC_EMPTY_SEARCH_LINK, emptySearchLink); searchDatasources += " " + datasources; continue; 
context: function loadHelpRDF() {    if (!helpFileDS) {        try {            helpFileDS = RDF.GetDataSourceBlocking(helpFileURI);        } catch (e if (e.result == NSRESULT_RDF_SYNTAX_ERROR)) {            log("Help file: " + helpFileURI + " contains a syntax error.");        } catch (e) {            log("Help file: " + helpFileURI + " was not found.");        }        try {            document.title = getAttribute(helpFileDS, RDF_ROOT, NC_TITLE, "");            helpBaseURI = getAttribute(helpFileDS, RDF_ROOT, NC_BASE, helpBaseURI);            // if there's no nc:defaulttopic in the content pack, set "welcome"            // as the default topic            defaultTopic = getAttribute(helpFileDS,                RDF_ROOT, NC_DEFAULTTOPIC, "welcome");            var panelDefs = helpFileDS.GetTarget(RDF_ROOT, NC_PANELLIST, true);            RDFContainer.Init(helpFileDS, panelDefs);            var iterator = RDFContainer.GetElements();            while (iterator.hasMoreElements()) {                var panelDef = iterator.getNext();                var panelID = getAttribute(helpFileDS, panelDef, NC_PANELID,                    null);                var datasources = getAttribute(helpFileDS, panelDef,                    NC_DATASOURCES, "rdf:none");                datasources = normalizeLinks(helpBaseURI, datasources);                var panelPlatforms = getAttribute(helpFileDS, panelDef, NC_PLATFORM, platform);                panelPlatforms = panelPlatforms.split(/\s+/);                if (panelPlatforms.indexOf(platform) == -1)                   continue; // ignore datasources for other platforms                // Cache Additional Datasources to Augment Search Datasources.                if (panelID == "search") {                    emptySearchText = getAttribute(helpFileDS, panelDef,                        NC_EMPTY_SEARCH_TEXT, emptySearchText);                    emptySearchLink = getAttribute(helpFileDS, panelDef,                        NC_EMPTY_SEARCH_LINK, emptySearchLink);                    searchDatasources += " " + datasources;                    continue; // Don't try to display them yet!                }                // Cache TOC Datasources for Use by ID Lookup.                var tree = document.getElementById("help-" + panelID + "-panel");                loadDatabasesBlocking(datasources);                tree.setAttribute("datasources",                    tree.getAttribute("datasources") + " " + datasources);            }        } catch (e) {            log(e + "");        }    }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/0daf572ee2013701129a448d7712b05431c04250/help.js/clean/toolkit/components/help/content/help.js