var templateNode = xml.getElementsByTagNameNS(MICSUM_NS, "template")[0]; 
var templateNode = generatorNode.getElementsByTagNameNS(MICSUM_NS, "template")[0]; 
  initFromXML: function(xml) {    // XXX Make sure the argument is a DOM node, that its name is "generator",    // and that it is in the microsummaries namespace.    // XXX I would have wanted to retrieve the info from the XML via E4X,    // but we'll need to pass the XSLT transform sheet to the XSLT processor,    // and the processor can't deal with an E4X-wrapped template node.    this.name = xml.getAttribute("name");    // Only set the source URI from the XML if we have a local URI, i.e.    // if this is a locally-installed generator, since for remote generators    // the source URI of the generator is the URI from which we downloaded it.    if (this.localURI) {      this.uri = xml.hasAttribute("sourceURI") ?                 this._ios.newURI(xml.getAttribute("sourceURI"), null, null) :                 this.localURI; // locally created generator without sourceURI    }    // Slurp the include/exclude rules that determine the pages to which    // this generator applies.  Order is important, so we add the rules    // in the order in which they appear in the XML.    this._rules = [];    var pages = xml.getElementsByTagNameNS(MICSUM_NS, "pages")[0];    if (pages) {      // XXX Make sure the pages tag exists.      for ( var i = 0; i < pages.childNodes.length ; i++ ) {        var node = pages.childNodes[i];        if (node.nodeType != node.ELEMENT_NODE ||            node.namespaceURI != MICSUM_NS ||            (node.nodeName != "include" && node.nodeName != "exclude"))          continue;        this._rules.push({ type: node.nodeName, regexp: new RegExp(node.textContent) });      }    }    var templateNode = xml.getElementsByTagNameNS(MICSUM_NS, "template")[0];    if (templateNode) {      this.template = templateNode.getElementsByTagNameNS(XSLT_NS, "transform")[0]                      || templateNode.getElementsByTagNameNS(XSLT_NS, "stylesheet")[0];    }      // XXX Make sure the template is a valid XSL transform sheet.  },
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/845848730daf4058ec6c162936bd526aa4f1d187/nsMicrosummaryService.js/buggy/browser/components/microsummaries/src/nsMicrosummaryService.js