title: How do I enable XSLT functions in PHP 5?
body: <p>I'm wanting to print an xml file out as an HTML nested list using xslt, and as far as I know the code is correct, however I'm getting this error</p>
  
  <blockquote>
    <p>Fatal error: Call to undefined function xslt_create()</p>
  </blockquote>
  
  <p>Which I presume means the xslt functions havn't been enabled. How do I enable these functions within PHP? Is there a php file I need to include (like the way Javascript libraries work) or is it something more complicated? I'm hosted with MediaTemple.</p>
  
  <p>Here's the php code I'm using:</p>
  
  <pre><code>        &lt;?php 
  
      // Allocate a new XSLT processor 
      $xh = xslt_create(); 
  
      // Process the document, returning the result into the $result variable 
      $result = xslt_process($xh, 'armstrong.xml', 'familyToNestedList.xsl'); 
      if ($result) { 
          print "SUCCESS, sample.xml was transformed by sample.xsl into the \$result"; 
          print " variable, the \$result variable has the following contents\n&lt;br&gt;\n"; 
          print "&lt;pre&gt;\n"; 
          print $result; 
          print "&lt;/pre&gt;\n"; 
      } 
      else { 
          print "Sorry, sample.xml could not be transformed by sample.xsl into"; 
          print "  the \$result variable the reason is that " . xslt_error($xh) .  
          print " and the error code is " . xslt_errno($xh); 
      } 
  
      xslt_free($xh); 
  
      ?&gt;
  </code></pre>
  
  <p>Thanks in advance!</p>