Re: XSLT - Sablotron
| From: | Chris Wesley | Date: | Thu, 05 Sep 2002 20:30:07 +0000 |
| Subject: | Re: XSLT - Sablotron | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-115351@lists.php.net to get a copy of this message | ||
On Thu, 5 Sep 2002, Devin Atencio wrote:
> I am trying to find out a way I can pass a variable that is basically
> an XML document to xslt_process and make it all work. My script
$xmldata = "<a whole boatload of well-formed XML>";
$xsltArgs = array( '/_xml' => $xmlStr );
$xp = xslt_create();
$result = xslt_process( $xp, 'arg:/_xml', 'file.xsl', NULL, $xsltArgs );
Don't waste the code/resources on putting the xml into a file.
g.luck,
~Chris