Location: PHPKode > scripts > xmlSiteMaker > xmlsitemaker/include/XSLT/XSLT.php
<?php

// php4.3 xlst function

class XSLT{

  var $xml;
  var $xslt;

  var $result;

  function XSLT(){
  }

  function setXML( $xml ){
    $this->xml = $xml;
  }

  function setXSLT( $xslt ){
    $this->xslt = $xslt;
  }

  function transform(){
    $arguments = array(
         '/_xml' => $this->xml,
         '/_xsl' => $this->xslt
    );

    $xh = xslt_create();
    $this->result = xslt_process( $xh, 'arg:/_xml', 'arg:/_xsl', NULL, $arguments );
    if ($this->result) {
    }
    else {
        print "Error " . xslt_error($xh) . " and the error code is " . xslt_errno($xh);
    }
    xslt_free($xh);
  }

  function getResult(){
    return $this->result;
  }

} // end class

?>
Return current item: xmlSiteMaker