rem: service.setDocumentURL(result, policyuri);  xsltp.transformDocument(source, style, result, null); window.title = result.getElementById("topic").firstChild.nodeValue; 
add:  xsltp.setParameter("", "policyUri", policyuri.spec); xsltp.importStylesheet(style);  var result = xsltp.transformToFragment(source, resultDocument);        transferToDocument(result, resultDocument);  window.title = resultDocument.getElementById("topic").firstChild.nodeValue; 
context: function renderMachineReadable(){  var xsltp     = window.arguments[0];  var source    = window.arguments[1];  var style     = window.arguments[2];  var policyuri = window.arguments[3];  var result    = getBrowser().contentDocument;  try {    var docshell  = getBrowser().docShell.QueryInterface(nsIDocShell);    var service   = Components.classes["@mozilla.org/p3p/p3pservice;1"].getService(nsIP3PService);        // For browser security do not allow javascript on the transformed document.    docshell.allowJavascript = false;         // Set the policy url on the result document ( fabricated ) where    // the transformation would result. Also, set the policy uri on the    // docshell for named anchors to work correctly.    docshell.setCurrentURI(policyuri);    service.setDocumentURL(result, policyuri);        xsltp.transformDocument(source, style, result, null);    window.title = result.getElementById("topic").firstChild.nodeValue;  }  catch (ex) {    alertMessage(getBundle().GetStringFromName("InternalError"));  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/c20476f69fe82b554a067aa53c9379e6fcad2fea/p3pSummary.js/clean/extensions/p3p/resources/content/p3pSummary.js