rem: var xslDocument = domParser.parseFromString(xslContent, 'text/xml'); 
add: var xslDocument = domParser.parseFromString(xslContent, 'application/xml'); 
context: function printEventArray( calendarEventArray, stylesheetName ){   var xslProcessor = new XSLTProcessor();   var domParser = new DOMParser;   var xcsDocument = getXcsDocument( calendarEventArray );   printWindow = window.open( "", "CalendarPrintWindow");   if( printWindow )   {      // if only passsed a filename, assume it is a file in the default directory      if( stylesheetName.indexOf( ":" ) == -1 )         stylesheetName = convertersDirectory + stylesheetName;      var stylesheetUrl = Components.classes["@mozilla.org/network/standard-url;1"].createInstance(Components.interfaces.nsIURI);      stylesheetUrl.spec = convertersDirectory;      domParser.baseURI = stylesheetUrl;      var xslContent = loadFile( stylesheetName );      var xslDocument = domParser.parseFromString(xslContent, 'text/xml');      // hack, might be cleaner to assing xml document directly to printWindow.document      // var elementNode = xcsDocument.documentElement;      // result.appendChild(elementNode); // doesn't work      xslProcessor.transformDocument(xcsDocument, xslDocument, printWindow.document, null);      printWindow.locationbar.visible = false;      printWindow.personalbar.visible = false;      printWindow.statusbar.visible = false;      printWindow.toolbar.visible = false;      printWindow.print();      printWindow.close();   }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/7bb18230cfb5def99196024dfe21720f89e8e5f7/calendar.js/clean/calendar/resources/content/calendar.js