Perform a single XSLT transformation.
MapKey key = new MapKey(xmlFileName, xsltFileName);
File xmlFile = new File(xmlFileName);
File xsltFile = new File(xsltFileName);
MapValue value = (MapValue) cache.get(key);
if (value == null || value.isDirty(xmlFile, xsltFile)) {
// this step performs the transformation
value = new MapValue(xmlFile, xsltFile);
cache.put(key, value);
}
return value.result;