Browse Source

Fix error.

pull/101/head
Adam Vessey 13 years ago
parent
commit
1460b8e5ce
  1. 4
      ObjectHelper.inc

4
ObjectHelper.inc

@ -433,8 +433,8 @@ class ObjectHelper {
($xsl = DOMDocument::load($xsl_path)) && ($xsl = DOMDocument::load($xsl_path)) &&
($ds = DOMDocument::loadXML($xmlstr))) { ($ds = DOMDocument::loadXML($xmlstr))) {
$transform = new XSLTProcessor(); $transform = new XSLTProcessor();
$transform->importStylesheet($domdoc); $transform->importStylesheet($xsl);
return $transform->transformToHTML($ds); return $transform->transformToXML($ds);
} }
else { else {
$simplexml = new SimpleXMLElement($xmlstr); $simplexml = new SimpleXMLElement($xmlstr);

Loading…
Cancel
Save