public static function render($xml, array $params = [])
	{
		$renderer = static::getCachedRenderer();

		if (!empty($params))
		{
			$renderer->setParameters($params);
		}

		if (isset(static::$beforeRender))
		{
			$xml = call_user_func(static::$beforeRender, $xml);
		}

		$output = $renderer->render($xml);

		if (isset(static::$afterRender))
		{
			$output = call_user_func(static::$afterRender, $output);
		}

		return $output;
	}
public static function render($xml, array $params = [])
	{
		$renderer = static::getCachedRenderer();

		if (!empty($params))
		{
			$renderer->setParameters($params);
		}

		if (isset(static::$beforeRender))
		{
			$xml = call_user_func(static::$beforeRender, $xml);
		}

		$output = $renderer->render($xml);

		if (isset(static::$afterRender))
		{
			$output = call_user_func(static::$afterRender, $output);
		}

		return $output;
	}
public static function render ( $ xml , array $ params = [ ] ) { $ renderer = static :: getCachedRenderer ( ) ; if ( ! empty ( $ params ) ) { $ renderer -> setParameters ( $ params ) ; } if ( isset ( static :: $ beforeRender ) ) { $ xml = call_user_func ( static :: $ beforeRender , $ xml ) ; } $ output = $ renderer -> render ( $ xml ) ; if ( isset ( static :: $ afterRender ) ) { $ output = call_user_func ( static :: $ afterRender , $ output ) ; } return $ output ; }
Render an intermediate representation using a singleton instance of the bundled Renderer

@param  string $xml    Intermediate representation
@param  array  $params Stylesheet parameters
@return string         Rendered result
Render an intermediate representation using a singleton instance of the bundled Renderer