/** * 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, XMLScriptletResponse::XSLT_TREE); return $res; }