|
Hi,
I've recenty transformed some XML with XSL and PHP. as shown in the code below.
Now i need to split the $html string (which is the resultant HTML output of the XML file)
into single characters instead of printing it to screen. Inhave tried the ususal PHP methods for splitting a string, nothing seems to work. I have also tried putting the string into an array. Again, nothing works. Could anyone please help me?
<?php
// Create an XSLT processor
$xsltproc = xslt_create();
// Perform the transformation
$html = xslt_process($xsltproc, 'results1.xml', 'results1.xsl');
// Detect errors
if (!$html) die('XSLT processing error: '.xslt_error($xsltproc));
// Destroy the XSLT processor
xslt_free($xsltproc);
//print out the HTML
echo $html;
?>
Thanks
Jo
|