Tuesday, October 6, 2009

XML, XSLT, Javascript, CSS, PHP in one

It was a real fun to put it all together into one file. Anyway, it works. http://www.ascii.com.pl/xml/details.xml. Ok, I just had to test it, if it is possible, but it is. I didn't make any tutorial, code is self explanatory, maybe .htaccess and php header needs additional explanation:
.htaccess
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html .xml .xsl


PHP header (for XML file)














and for XSLT file:











And even overall speed is ok:


No comments:

Post a Comment