note 23941 added to function.xslt-process

From: Date: Thu, 01 Aug 2002 21:09:06 +0000
Subject: note 23941 added to function.xslt-process
Groups: php.notes 
Request: Send a blank email to php-notes+get-34108@lists.php.net to get a copy of this message
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); -- http://www.php.net/manual/en/function.xslt-process.php http://master.php.net/manage/user-notes.php?action=edit+23941 http://master.php.net/manage/user-notes.php?action=delete+23941 http://master.php.net/manage/user-notes.php?action=reject+23941

« previous php.notes (#34108) next »