t.setParameter("pageTitle", pageTitle);
t.setParameter("slingScriptPath", fullPath(request,SLING_JS_PATH));
t.setParameter("jstScriptPath", fullPath(request, scriptPath + ".jst.js"));
t.setParameter("defaultRendering", defaultRendering.toString());
t.setParameter("jsonData", jsonData.toString());
final Result result = new StreamResult(output);
final DOMSource source = new DOMSource(template);
t.transform(source, result);
} catch (Exception e) {
final ScriptException se = new ScriptException("Error in XSLT transform for " + scriptPath);