I wonder if xsl extension could be enable. it's an extension that come by default with php5 but need to be activate.
http://ca.php.net/manual/en/ref.xsl.php
It's use to separate separate dynamic process (php) from the presentation (html). In case you don't understand why code need to be...