/** * 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; }
/** * Set our own response object * * @return scriptlet.xml.XMLScriptletResponse * @see xp://scriptlet.HttpScriptlet#_response */ protected function _response() { $response = new XMLScriptletResponse(); $response->setProcessor($this->processor); return $response; }