note 37980 deleted from ref.xslt by didou

From: Date: Thu, 04 Dec 2003 09:39:37 +0000
Subject: note 37980 deleted from ref.xslt by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-61395@lists.php.net to get a copy of this message
Note Submitter: alanraysablotron at elhogar.com ---- I could not get sablotron to compile with PHP on my FREEBSD box, but I could get the sabcmd command line utility running. So this is what I did to enable XSLT transformations on my box, even though the sablotron extension would not load. /// SIMPLE XSLT by Alan Young /// define path to sablotron executable $SABCMD="/usr/local/bin/sabcmd"; /// path to where xslt and xml documents are $DOCPATH="/usr/local/apache/webservices/"; // style sheet $XSL=$DOCPATH."DOC1.XSL"; // xml data $XML=$DOCPATH."DOC1.XML"; $EXEC=$SABCMD." ". $XSL." ".$XML; ob_start(); # start buffer system($EXEC); // get result of translation $result = ob_get_contents(); ob_end_clean(); print $result;

« previous php.notes (#61395) next »