16        if ($proc === 
false) $proc = 
new XSLTProcessor();
 
   17        $this->xsltProcessor = $proc;
 
   25        if (is_string($xsl)) {
 
   27            $xsl = 
new DOMDocument();
 
   28            $xsl->load($xsl_file);
 
   30        return $this->xsltProcessor->importStylesheet($xsl);
 
   41        if (is_string($xml)) {
 
   42            $dom = 
new DOMDocument();
 
   47        $out = $this->xsltProcessor->transformToXML($dom);
 
   51        $out = str_replace(
'/>', 
' />', 
$out); 
 
   52        $out = str_replace(
' xmlns=""', 
'', 
$out); 
 
   54        if (class_exists(
'Tidy')) {
 
   58                'output-xhtml'  => 
true,
 
   64            $out = (string) $tidy;
 
   76        foreach (
$options as $name => $value) {
 
   77            $this->xsltProcessor->setParameter(
'', $name, $value);
 
   84    public function __call($name, $arguments)
 
   86        call_user_func_array(array($this->xsltProcessor, $name), $arguments);
 
An exception for terminatinating execution or to throw for unit testing.
Decorator/extender XSLT processor specifically for HTML documents.
__call($name, $arguments)
Forward any other calls to the XSLT processor.
setParameters($options)
Bulk sets parameters for the XSL stylesheet.
transformToHTML($xml)
Transforms an XML file into compatible XHTML based on the stylesheet.
$xsltProcessor
Instance of XSLTProcessor.
if(!is_array($argv)) $options