duzy wrote:
> I am trying server-side transformation with PHP.
> http://duzy.dsv.agh.edu.pl/xmltry/fun.php is wisible only in my local web.
> XML and XSLT and php file are in the same catalog.
I have had a look again and indeed the example given in
<http://www.zend.com/php5/articles/php5-xmlphp.php#Heading18> is a bit
flawed, it is supposed to output XML but doesn't create any element.
Change the XSLT stylesheet to
<?xml version="1.0" encoding="iso-8859-1" ?>
<xsl:stylesheet version="1.0"
xmlns

sl="http://www.w3.org/1999/XSL/Transform"
xmlns

hp="http://php.net/xsl">
<xsl:template match="today">
<xsl:copy>
<xsl:value-of select="php:function('dateLang')" />
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
and then all is fine in regard to the XML output that IE sees.
However if you really want the output of the PHP to be seen as XML then add
header('Content-Type: application/xml');
before the line
print $newdom->saveXML();
--
Martin Honnen
http://JavaScript.FAQTs.com/