36 $this->myProc =&
new XSLTProcessor;
40 function xslt_process(&$proc, $xml_var, $xslt_var, $dummy, $args, $params,
41 $a_no_warnings =
false)
46 $xslt = $proc->myProc;
48 $xslt_domdoc =
new DomDocument();
49 $xslt_domdoc->loadXML($args[substr($xslt_var, 4)]);
50 $xslt->importStyleSheet($xslt_domdoc);
51 if (is_array($params))
53 foreach ($params as $key => $value)
55 $xslt->setParameter(
"", $key, (
string)$value);
62 $xml_domdoc =
new DomDocument();
63 $xml_domdoc->loadXML($args[substr($xml_var, 4)]);
65 $result = $xslt->transformToXML($xml_domdoc);