PHP 8.5.0 Alpha 4 available for testing

Voting

: five plus one?
(Example: nine)

The Note You're Voting On

alanraycom at el hogar dot net com
21 years ago
XSLT transformations using MSXML can be done with this code

<?php
function xsltransform1($xslpath,$xmlstring)
{
$xml= new COM("Microsoft.XMLDOM");
$xml->async=false;
// $xmlstring is an xml string
$xml->load($xmlstring);
$xsl = new COM("Microsoft.XMLDOM");
$xsl->async=false;
// $xslpath is path to an xsl file
$xsl->load($xslpath);
$response=$xml->transformNode($xsl);
unset(
$xml);
unset(
$xsl);
return
$response;
}
?>

enjoy
Alan Young

<< Back to user notes page

To Top