Пример #1
0
protected static function response_transform ()
{
	//!!!!!!!!!!!!!!
//???	self::$data_document->xinclude(); <-- this should never be xniclude()d. recipient must to this.
//???	self::$xslt_document->xinclude(); <-- this can be xinclude()d, probably. 
	self::$data_document->normalize();
	self::$xslt_document->normalize();

	if (self::$xslt_format == '')
	{
		self::$response_document = self::$data_document;
	} else
	{
		$processor = new XSLTProcessor();
		$processor->importStylesheet(self::$xslt_document);
		self::conf_assign_parameters($processor);
		self::$response_document = $processor->transformToDoc(self::$data_document);
		if (self::$response_document === false)
			throw new coren_exception/*!!!*/("Can not apply XSL-transforms.");
	}
}