RE: [PEAR] Using XML_Query2XML to generate XHTML
| From: | Lukas Feiler | Date: | Mon, 08 Dec 2008 08:05:50 +0000 |
| Subject: | RE: [PEAR] Using XML_Query2XML to generate XHTML | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29489@lists.php.net to get a copy of this message | ||
Hi Patrick!
Patrick Pfeiffer wrote:
>
> Hello!
>
> I wonder if its a good idea to use XML_Query2XML to generate XHTML
> directly without the intermediate step of transforming the resulting
> XML into XHTML with XSLT.
>
> Lukas has mentioned, that XSLT is not needed. On [1] for example there
> is an example of using XML_Query2XML to generate XML. After that XSLT
> is used to transform the XML into XHTML. Isnt it "better" to create
> the XHTML directly, regarding performance and such things?
>
> [1] http://www.ibm.com/developerworks/library/x-query2xml/
>
In most scenarios I would advise directly creating XHTML. It will be way
faster.
You might want to do some profiling [1] to be sure.
>
> --
> patrick
>
Lukas
[1]
http://query2xml.sf.net/docs/html/XML_Query2XML/tutorial_XML_Query2XML.pkg.h
tml#profiling