|
|
@ -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); |
|
|
|