Forum Moderators: open
I would ask a hosting company: "Do you support PHP5/libxslt XSLT?"
They would say "Sure! Come on board!"
Strangely enough, they wouldn't let me do a phpinfo() of their servers for "security reasons."
I would get on there, and SURPRISE! PHP 5, but no XSLT!
If I want XSLT, I need to degrade to a PHP4 server with the unacceptable Sablotron engine (SLOW). The new PHP5 engine is quite fast.
So, I have developed a little test file. I tell potential hosters: "If this file runs UNALTERED, then you have what I need."
Here's the file:
<?php
ini_set('display_errors', 1);
ini_set('error_reporting', E_ERROR);
$xsl = new XSLTProcessor();
$xml_file_dom = new DOMDocument('1.0', 'iso-8859-1');
$xsl_file_dom = new DOMDocument('1.0', 'iso-8859-1');
$xml_file_dom->loadXML ( '<?xml version="1.0" encoding="UTF-8"?><hello>I Support PHP 5\'s XSLT Implementation!</hello>' );
$xsl_file_dom->loadXML ( '<?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:template match="hello"><h1><xsl:apply-templates/></h1></xsl:template></xsl:stylesheet>' );
$xsl->importStyleSheet( $xsl_file_dom );
echo $xsl->transformToXML ( $xml_file_dom );
?>
It's quite binary. You either get a big, happy announcement that XSLT is supported, or you get a fatal error.