rem: res.redirect(root.href("rss")); 
add: var now = new Date(); var systitle = root.getTitle(); var sdf = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); sdf.setTimeZone(new java.util.SimpleTimeZone(0, "UTC"));  var size = this.size(); var max = req.data.max ? parseInt(req.data.max) : 25; max = Math.min(max, size, 50);  var param = new Object(); var items = new java.lang.StringBuffer(); var resources = new java.lang.StringBuffer();  for (var i=0; i<max; i++) { var site = this.get(i); if (site.online && site.lastupdate) { param.title = site.title ? site.title : site.alias; param.publisher = systitle; param.creator = site.creator.name; param.email = ""; if (site.email) param.email = site.email.entitize(); else if (site.creator.publishemail) param.email = site.creator.email.entitize(); param.isodate = sdf.format(site.lastupdate) param.date = site.properties.get("tagline") ? "" : param.isodate; param.year = site.lastupdate.getFullYear(); items.append(site.renderSkinAsString("rssItem", param)); resources.append(site.renderSkinAsString("rssResource", param)); } } param = new Object(); param.title = systitle; param.email = root.sys_email.entitize(); param.year = now.getFullYear(); param.lastupdate = sdf.format(now); param.items = items.toString(); param.resources = resources.toString(); this.renderSkin("rss", param); 
context: Root.prototype.rss_xml_action = function() {   res.redirect(root.href("rss"));   return;};
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/993/c7d828aae929f391c4119da3d964e439a7f89e95/Root.js/buggy/code/Root/Root.js