src/XML/XSL/Transformator.php
public function transform()
	{
		if( !( $this->xml && $this->xsl ) )
			throw new InvalidArgumentException( 'XML and XSL must be set.' );
		$xml	= DOMDocument::loadXML( $this->xml );
		$xsl	= DOMDocument::loadXML( $this->xsl );
		$proc	= new XSLTProcessor();
		$proc->importStyleSheet( $xsl );
		$result =  $proc->transformToXML( $xml );
		return $result;
	}
public function transform()
	{
		if( !( $this->xml && $this->xsl ) )
			throw new InvalidArgumentException( 'XML and XSL must be set.' );
		$xml	= DOMDocument::loadXML( $this->xml );
		$xsl	= DOMDocument::loadXML( $this->xsl );
		$proc	= new XSLTProcessor();
		$proc->importStyleSheet( $xsl );
		$result =  $proc->transformToXML( $xml );
		return $result;
	}
public function transform ( ) { if ( ! ( $ this -> xml && $ this -> xsl ) ) throw new InvalidArgumentException ( 'XML and XSL must be set.' ) ; $ xml = DOMDocument :: loadXML ( $ this -> xml ) ; $ xsl = DOMDocument :: loadXML ( $ this -> xsl ) ; $ proc = new XSLTProcessor ( ) ; $ proc -> importStyleSheet ( $ xsl ) ; $ result = $ proc -> transformToXML ( $ xml ) ; return $ result ; }
Transforms loaded XML and XSL and returns Result.
@access		public
@return		string
Transforms loaded XML and XSL and returns Result .