rsp.setContentType(xml ? "text/xml" : "text/html");
Tag tag = new Tag("result");
tag.addAttribute("start", new Date());
String template = doXML(tag, rq, rsp);
tag.addAttribute("end", new Date());
tmp.println("<?xml version='1.0'?>");
tmp.println("<?xml-stylesheet type='text/xsl' title='Compact' "
+ " href='" + template + ".xsl'?>");