For a while now I have been trying to Install php with Sablotron support. I am using php4.3.4 and Apache 2. After setting The LDFLAG variable to -lstdc++ I was finally able to Compile. PHP runs and works with mysql, and some other Php enabled pages. But when I try to run a sample transform With the following files, I receive this message:
Warning: xslt_process(): supplied argument is not a valid XSLT Processor resource in /usr/local/apache2/htdocs/xml/person.php on line 10 I have tried some other sample files copied from tutorials and get other Error messages: Parse error: parse error in /usr/local/apache2/htdocs/xtest.php on line 2 The XML,XSL,PHP files and PHP compile, version, and config information is Below. Any suggestions greatly appreciated. John Rutherford <? +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ PHP SCRIPT: // store XML and XSL content as variables $xmlstring = join('', file('person.xml')); $xslstring = join('', file('person.xsl')); xslt_process($xslstring, $xmlstring, $result); // output the result echo $result; ?> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ XSL FILE: <?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <html> <head> </head> <body> <h1>Contact information for <b><xsl:value-of select="me/name" /></b></h1> <h2>Mailing address:</h2> <xsl:value-of select="me/address" /> <h2>Phone:</h2> <xsl:value-of select="me/tel" /> <h2>Email address:</h2> <xsl:value-of select="me/email" /> <h2>Web site URL:</h2> <xsl:value-of select="me/url" /> </body> </html> </xsl:template> </xsl:stylesheet> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ XML FILE: <?xml version="1.0"?> <me> <name>John Doe</name> <address>94, Main Street, Nowheresville 16463, XY</address> <tel>738 2838</tel> <email>[EMAIL PROTECTED]</email> <url>http://www.unknown_and_unsung.com/</url> </me> Configure options are listed below: './configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-track-vars' '--with-dom=/usr/local' '--enable-sockets' '--enable-wddx' '--with-xmlrpc' '--enable-xslt' '--with-xslt-sablot=/usr/local/' '--with-zlib-dir=/usr/local/include' '--with-expat-dir=/usr/local' '--with-iconv-dir=/usr/local/' '--with-mysql=/usr/local/mysql' Phpinfo reports that all of the modules are installed: XSLT support enabled Backend Sablotron Sablotron Version 1.0.1 Sablotron Information Cflags: -g -O2 Libs: -L/usr/local/lib -liconv -lexpat Prefix: /usr/local core library version xmlrpc-epi v. 0.51 php extension version 0.51 author Dan Libby homepage http://xmlrpc-epi.sourceforge.net open sourced by Epinions.com XML Support active XML Namespace Support active EXPAT Version expat_1.95.5 DOM/XML enabled DOM/XML API Version 20020815 libxml Version 20604 HTML Support enabled XPath Support enabled XPointer Support enabled