rem: function printEventArray( calendarEventArray, stylesheet ) 
add: function printEventArray( calendarEventArray, stylesheetName ) 
context: function printEventArray( calendarEventArray, stylesheet ){   var xcsDocument = getXcsDocument( calendarEventArray );   var newProcessInstruction = xcsDocument.createProcessingInstruction(      "xml-stylesheet",      "href=\"" + stylesheet + "\" type=\"text/xsl\"");   xcsDocument.insertBefore(newProcessInstruction, xcsDocument.firstChild);   newProcessInstruction = xcsDocument.createProcessingInstruction(      "xml", "version=\"1.0\" encoding=\"UTF-8\"");   xcsDocument.insertBefore(newProcessInstruction, xcsDocument.firstChild);   var serializer = new XMLSerializer;   var serialDocument = serializer.serializeToString ( xcsDocument );   // XXX TODO Can we directly load the xml-document into a window???   tempfile = makeTempFile( ".xml" );   saveDataToFile(tempfile.path, serialDocument);   var tempfileUrl = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIFileURL);   tempfileUrl.file = tempfile;   printWindow = window.open( tempfileUrl.spec );   if( printWindow )   {      printWindow.locationbar.visible = false;      printWindow.personalbar.visible = false;      printWindow.statusbar.visible = false;      printWindow.toolbar.visible = false;      // XXX HACK open is async, find a way to detect if content is loaded      // using onload doesn't fire?      setTimeout("delayedPrint()", 1000);   }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/70dd64cc23f19f07b46d7c846d4050fc37f7ca1f/calendar.js/clean/calendar/resources/content/calendar.js