Closed

Description
Sometimes we need to perform more complex actions with document template than just simple replace of ${} parameters. XSLT really helps in such situations.
This issue is a proposal of the correspondent class method implementation with the followed signature.
/**
* Applies XSL style sheet to XML template.
*
* @param DOMDocument &$xslDOMDocument
* @param array $xslOptions = array()
* @param string $xslOptionsURI = ''
*/
public function applyXslStyleSheet(&$xslDOMDocument, $xslOptions = array(), $xslOptionsURI = '')
{
...
}
Assumption: we have XSL style sheet loaded as DOMDocument before the method call.
Requirement: "php_xml.dll" library.
Limitation: XSLT 1.0, XPath 1.0 (because of XSLTProcessor).