Hi Brian,
I have not been able to reproduce the 500 Internal Server Error using MAMP Pro on my mac. Here’s what I’ve gotten working:
{exp:xsltransform xsl='xslt/footer_generic_720'} <xml> <footer> <group> <heading>Heading 1</heading> <heading_path>http://www.site.com/heading1/</heading_path> <link> <path>http://www.site.com/heading1/a/</path> <text>a</text> </link> <link> <path>http://www.site.com/heading1/b/</path> <text>b</text> </link> <link> <path>http://www.site.com/heading1/c/</path> <text>c</text> </link> </group> <group> <heading>Heading2</heading> <heading_path>http://www.site.com/heading2/</heading_path> <link> <path>http://www.site.com/heading2/d/</path> <text>d</text> </link> <link> <path>http://www.site.com/heading2/e/</path> <text>e</text> </link> <link> <path>http://www.site.com/heading2/f/</path> <text>f</text> </link> </group> </footer> </xml> {/exp:xsltransform}
xslt/footer_generic_720 contains:
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="html" indent="yes" encoding="utf-8" omit-xml-declaration="yes"/>
<xsl:template match="/"> Hello <xsl:value-of select="."/> </xsl:template> </xsl:stylesheet>
Note that I used select=”.”. It outputs the entire tree of data without the XPath being refined.
My version of MAMP Pro is only supporting PHP 5.2.13 or PHP 5.3.2, both of which I’ve tried successfully.
So:
* What version of PHP are you on? The plugin was coded, and tested, to support 4 as well.
* Depending on your PHP version, does your server have the necessary XML & XSLT libraries? If you drop:
<? phpinfo() ?>
Into a PHP file you should be able to see if there are any XML or XSL libraries loaded.
Those would be necessary. The 500 error may very well be due to the lack of a requisite PHP Library.
Let me know what you find?
Thanks,
Mark
|