note 13847 deleted from function.xslt-transform by nlopess

From: Date: Mon, 28 Jun 2004 15:07:41 +0000
Subject: note 13847 deleted from function.xslt-transform by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72038@lists.php.net to get a copy of this message
Note Submitter: imirkin at tjhsst dot edu ---- The documentation is not very self explanatory for this function. After looking at the source code, here is a sample way of passing string versions of xml and xsl files, and passing parameters, such as ones passed through GET or POST: xslt_transform('arg:/xsldata', 'arg:/xmldata', 'arg:/', $HTTP_GET_VARS, array('xmldata' => $xml_data, 'xsldata' => $xsl_data), $result); echo $result; Further, if you include a file like "html.xsl" in the xsl data, you will need to add an extra array element like 'html.xsl' => $file_data so that the XSLT processor be able to access it. If you want to simply have the XSLT process read a file in, specify a regular URI for it like in the other functions.

« previous php.notes (#72038) next »