note 37980 added to ref.xslt

From: Date: Wed, 03 Dec 2003 20:37:27 +0000
Subject: note 37980 added to ref.xslt
Groups: php.notes 
Request: Send a blank email to php-notes+get-61358@lists.php.net to get a copy of this message
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; ---- Manual Page -- http://www.php.net/manual/en/ref.xslt.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+37980 Delete -- http://master.php.net/manage/user-notes.php?action=delete+37980&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+37980&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#61358) next »