We can just write a JSP page that does this via JAXP
...or we could have written a java program/library just as well.
The jsp page's main code (using the last lecture's code):
// Setup the transformations Transforme aggregate = getTransform("aggregate.xsl"); Transforme style = getTransform("style.xsl"); // Create a DOMResult to hold the between XML document DOMResult between = new DOMResult(); // Transform the input aggregate.transform(new StreamSource(request.getQueryString()),between); // Transform the output of step 1 style.transform(new DOMSource(between.getNode()),new StreamResult(out));