/** * Creates a new response object * * @return scriptlet.xml.XMLScriptletResponse */ protected function newResponse(Stylesheet $stylesheet) { $res = new XMLScriptletResponse(); $res->setProcessor(new DOMXSLProcessor()); $stylesheet->addParam('__state'); $stylesheet->addParam('__page'); $stylesheet->addParam('__lang'); $stylesheet->addParam('__product'); $stylesheet->addParam('__sess'); $stylesheet->addParam('__query'); $res->setStylesheet($stylesheet, XSLT_TREE); return $res; }