rem: res.redirect(root.href("rss")); 
add: res.contentType = "text/xml"; res.dependsOn(this.lastupdate); res.digest();  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 collection, subtitle; switch (true) { case (req.data.show == "all") : collection = this.allcontent; subtitle = "with comments"; break;  case (req.data.day != null) : collection = this.get(req.data.day); subtitle = req.data.day; break; case (req.data.topic != null) : collection = this.topics.get(req.data.topic); subtitle = req.data.topic; break; default : collection = this.allstories; } var size = (collection != null) ? collection.size() : 0;  var max = req.data.max ? parseInt(req.data.max) : 7; max = Math.min(max, size); max = Math.min(max, 10);  var item = {}; if (max > 0 && this.online) { var items = new java.lang.StringBuffer(); var resources = new java.lang.StringBuffer(); collection.prefetchChildren(0, max); for (var i=0; i<max; i++) { var story = collection.get(i); var item = { url: story.href(), title: story.getRenderedContentPart("title").stripTags(), text: story.getRenderedContentPart("text").stripTags(), publisher: systitle, creator: story.creator.name, date: sdf.format(story.createtime), subject: story.topic ? story.topic : "", year: story.createtime.getFullYear() }; if (story.creator.publishemail) item.email = story.creator.email.entitize(); if (!item.title) {   if (!item.text ) item.title = "..."; else { var embody = item.text.embody(10, "...", "\\s"); item.title = embody.head; item.text = embody.tail; } } items.append(story.renderSkinAsString("rssItem", item)); resources.append(story.renderSkinAsString("rssResource", item)); }  var site = { subtitle: subtitle, url: this.href(), title: systitle, creator: this.creator.name, year: now.getFullYear(), lastupdate: max > 0 ? sdf.format(this.lastUpdate): sdf.format(this.createtime), items: items.toString(), resources: resources.toString() }; if (this.email) site.email = this.email.entitize(); else if (this.creator.publishemail) site.email = this.creator.email.entitize(); this.renderSkin("rss", site); } 
context: Site.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/d46237ae5555045222f493137c5c51dbcd7b4033/Site.js/clean/code/Site/Site.js