José Manuel Peso Echarri wrote:
> Hi people,
> 
> I  am looking for a library that mix xsl and xml producing output in
> xhtml at server side.
> I have readed about sablotron and libxsl, but i am confused.
> 
> Which is the best alternative in perfomance terms for the versions 4.2,
> 4.3?
> is there some way for preprocess xsl or let ir in memory or any way for
> improve the resources usage?

Dunno about v4, but for v5 at least:

$xsl = DOMDocument::loadXML($xslt_as_a_string);
$xsltproc = new XSLTProcessor;
$xsltproc->importStyleSheet($xsl);
echo $xsltproc->transformToXML($my_xml_dom_doc);

Or something like that..... going form memory, so there may be more
appropriate commands etc.

Col.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to