/**
*
*/
protected void transformXML(Document doc, String childId, short childType, String childName, Map parameters) throws Exception {
log.error(".transformXML(): " + childId);
DOMUtil du = new DOMUtil();
// Replace id
du.setElementValue(doc, "/echo:entry/echo:id", "tag:bob.blog," + year + ":" + month + ":" + day + ":" + childId);
// Replace title
du.setElementValue(doc, "/echo:entry/echo:title", (String)parameters.get("title"));
// Replace Summary
du.setElementValue(doc, "/echo:entry/echo:summary", "Summary");
// Replace link:
du.setAttributeValue(doc, "/echo:entry/echo:link/@rel", "alternate");
du.setAttributeValue(doc, "/echo:entry/echo:link/@href", "http://bob.blog/");
du.setAttributeValue(doc, "/echo:entry/echo:link/@type", "text/xml");
// Replace author
Identity identity = (Identity)parameters.get("org.apache.lenya.ac.Identity");
du.setElementValue(doc, "/echo:entry/echo:author/echo:name", identity.getUser().getId());
// Replace date created (and issued and modified, FIXME: issued should be set during first time publishing, modified should be set during re-publishing)
DateFormat datefmt = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
DateFormat ofsfmt = new SimpleDateFormat("Z");
String dateofs = ofsfmt.format(date);
String datestr = datefmt.format(date) + dateofs.substring(0, 3) + ":" + dateofs.substring(3, 5);
du.setElementValue(doc, "/echo:entry/echo:created", datestr);
du.setElementValue(doc, "/echo:entry/echo:issued", datestr);
du.setElementValue(doc, "/echo:entry/echo:modified", datestr);
}