Re: xsl + xml

From: Date: Wed, 20 Sep 2006 12:09:52 +0000
Subject: Re: xsl + xml
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-241975@lists.php.net to get a copy of this message
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.

« previous php.general (#241975) next »