php - EasyPHP custom java extension -


i using easyphp test purposes, , wish apply xslt 2.0 processor in php code. easyphp 5.3.9 standard xslt processor of 1.0 version though.

what have apply xslt processor in saxon9he.jar or xslt2processor.jar (found on sourceforge.net)? stuff know:

  • which directory place jar in
  • where change config include jar (probably using extension functionality)
  • what put code in order declare new instance of xslt processor

code using

<?php     $xml = new domdocument();     $xml->load('test.xml');     $xslt = new xsltprocessor();     $xsl = new domdocument();     $xsl->load('test.xslt');     $xslt->importstylesheet( $xsl );     print $xslt->transformtoxml( $xml ); ?> 

which errors because have xslt 2.0 version stylesheet. errors like

warning: xsltprocessor::importstylesheet() [xsltprocessor.importstylesheet]: compilation error: file file:///c:/program%20files%20(x86)/easyphp-5.3.9/www/test.xslt line 99 element function in c:\program files (x86)\easyphp-5.3.9\www\test.php on line 7 


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -