From e5a4e2d8b62e7397f95b6c6b6dbe32c0d2c67bd3 Mon Sep 17 00:00:00 2001 From: Roman Syroeshko Date: Sat, 1 Mar 2014 05:12:11 -0800 Subject: [PATCH] https://github.com/PHPOffice/PHPWord/issues/46 The method name was changed to be more correct. --- Classes/PHPWord/Template.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Classes/PHPWord/Template.php b/Classes/PHPWord/Template.php index d474195e..6a113fbe 100755 --- a/Classes/PHPWord/Template.php +++ b/Classes/PHPWord/Template.php @@ -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();