The method name was changed to be more correct.
This commit is contained in:
Roman Syroeshko 2014-03-01 05:12:11 -08:00
parent abbd288509
commit e5a4e2d8b6
1 changed files with 3 additions and 3 deletions

View File

@ -77,20 +77,20 @@ class PHPWord_Template
}
/**
* Applies XSL transformation to XML template.
* Applies XSL style sheet to XML template.
*
* @param DOMDocument &$xslDOMDocument
* @param string $xslOptionsURI
* @param array $xslOptions
*/
public function applyXSLT(&$xslDOMDocument, $xslOptionsURI = '', $xslOptions = [])
public function applyXslStyleSheet(&$xslDOMDocument, $xslOptionsURI = '', $xslOptions = [])
{
$processor = new \XSLTProcessor();
$processor->importStylesheet($xslDOMDocument);
if ($processor->setParameter($xslOptionsURI, $xslOptions) === \FALSE) {
throw new \Exception('Could not set values for the given XSL stylesheet parameters.');
throw new \Exception('Could not set values for the given XSL style sheet parameters.');
}
$xmlDOMDocument = new \DOMDocument();