note 23941 deleted from function.xslt-process by sobak

From: Date: Tue, 22 Nov 2016 03:32:13 +0000
Subject: note 23941 deleted from function.xslt-process by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-207345@lists.php.net to get a copy of this message
Note Submitter: dragan at iskrassoderwas dot de ---- Your input into xslt-process can of course be of external-php-script-nature. This way, you can use PHP scripts that output XML code to make up the transformation: // Transforming "Dynamic XML" through static XSL <?php // Gonna contain PHP-XML output $arguments = array( '/_xml' => $xml, ); $xh = xslt_create(); // Read plain PHP-XML output $xmlData = fopen ("http://somehost/xmloutputtingscript.php", "r"); // Stack up output into one String while ($line = fgets ($xmlData)) $xml .= $line; // Process the document $result = xslt_process($xh, 'arg:/_xml', 'mystylesheet.xsl', NULL, $arguments); // Print out your transformed document echo $result; xslt_free($xh);

« previous php.notes (#207345) next »