Hy,
I'm using php4.2.3, Apache 1.3.14 and sablotron 0.96 on Win2k.
Parsing my XML file with an XSL file runs well.
Here my Code:
<?php
$xmlfile = join('',file("content.xml"));
$xslfile = join('',file("content.xsl"));
$xp=xslt_create();
$arg = array( '/xml' =>$xmlfile, '/xsl' => $xslfile );
$result = xslt_process($xp, 'arg:/xml', 'arg:/xsl', NULL, $arg);
echo $result; xslt_free($xp);
?>
So this runs well, the only problem is with "Umlaute" like : Ä,Ö,Ü and so on. Ä is printed as ä .... and so on.
I've added
<?xml version="1.0" encoding="ISO-8859-1"?>
in my XML file and the same in my XSL file, Output method is html.
I assume it has something to do with the join php part, but it's the only way i know to run sablotron without errors
(sth. like $xmlfile = file("content.xml") produces an sablotron error).
So does anybody know how to solve this?