loftinsualtion Posted February 7, 2010 Share Posted February 7, 2010 Hello, I have some xml, and have made some xsl to display the data in some lovely tables. This works beautifully on my development set-up (Windows, Apache 2.2.13, PHP 5.2.11), but fails on my hosted server (Linux, Apache 2.2.13, PHP 5.2.12). I'm using the XSL extension in PHP and the following basic code: $xslDoc = new DOMDocument(); $xslDoc->load('transform.xsl'); $xmlDoc = new DOMDocument(); $xmlDoc->load('transformee.xml'); $proc = new XSLTProcessor(); $proc->importStylesheet($xslDoc); $html = $proc->transformToXML($xmlDoc); Having done some investigation it is the xsl:choose statements in the xsl that cause the failure (yielding internal server error) on the hosted server. Removing these, the rest works fine - it is just the xsl:choose parts that cause transformToXML to fail (but interestingly not returning false). Just wondering if anyone may know what is going on here? Does it sound like a configuration issue for my hosting supplier? Thanks very much. [Apologies if this should be in another forum] Link to comment https://forums.phpfreaks.com/topic/191232-php-xsl-problem-with-xslchoose/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.