this.message = message; this.inResponseTo = inResponseTo;
// convert the data into XML (a JDOM Document) Document doc = new Document(ViewMessageJDOM.produceElement( this.message, this.inResponseTo)); // apply the appropriate stylesheet XSLTRenderHelper.render(servlet, doc, "viewMsg.xslt", response);