Justin Gehring wrote:

$xml = DomDocument::loadXML($xml_string);
$xsl = DomDocument::loadXML($xsl_string);
//make a new XSLT Processor
$proc = new xsltprocessor;
// attach the xsl rules
$proc->importStyleSheet($xsl);
$result_string = $proc->transformToXML($xml);

Erk!

That's going to be hugely, massively slow to run on
every request.  Far better to preprocess.  Or if it's
generated or proxied contents, use mod_transform.

--
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to