I have some code in PHP which I need to translate into Delphi:
$xsl = new DOMDocument();
$xsl->load('http://www.fda.gov/oc/datacouncil/stylesheets/spl/spl.xsl');
$proc = new XSLTProcessor();
$proc->importStylesheet($xsl);
$xml = new DOMDocument();
$xml->load($xmlFile);
$domTranObj = $proc->transformToDoc($xml);
$strHTML = $domTranObj->saveHTML();
What I need to do is take a snippet of XML (from a database field), transform it using the .xsl translation document, and then save the whole thing back into the data field as HTML.
Does anyone know how to do this in Delphi?