Klixo Flower LogoKlixo Business Web Services Title
Home Services About Us Our Clients Blogs Contact us Support Login

Generating PHP from XSL

Check your encoding when generating PHP files using XSL:
 
In order to generate PHP parsable output from the Klixo content management system, the file produced must be encoded as UTF-8 (certainly not UTF-16 / unicode).  If not, the file may appear valid in a text file viewer but when compiled, the php code will appear verbatim in the converted HTML file. 
 
To solve this problem, include the line
 
<xsl:output encoding="UTF-8" />
 
...inside the xml:stylesheet tag.
Questions?
Info@klixo.co.nz
07 3072660