ID: 8266
Updated by: jmcastagnetto
Old-Status: Assigned
Status: Closed
Bug Type: Documentation problem
Assigned To: sterling

Fixed errors in example.

Previous Comments:

[2001-01-01 17:44:25] [EMAIL PROTECTED]
This is a manual bug.  It will be fixed.

Try this with valid XSL and XML and you should get the appropriate results.


[2000-12-14 20:45:48] [EMAIL PROTECTED]
We've been having a lot of problems with this so please allow me to list in detail 
what we've done so we can try and track down this bugger.

We did a virgin install of RedHat 6.2 with bare bones.

We downloaded the Sablotron 0.44 binaries and copied the libs to /usr/local/lib and 
added /usr/local/lib to the /etc/ file and ran /sbin/ldconfig.  We then 
copied the contents of the include dir to /usr/local/include.

We downloaded the Apache 1.3.14 sources and did the typical ./configure in the apache 
dir after untaring them.

We downloaded PHP 4.0.4RC6 (figured this was close enough to the latest CVS) and 
untared it.

We ran ./configure --with-apache=../apache_1.3.14 --with-sablot --with-zlib 

We ran make.  No problems.  We ran make install and then compiled Apache using the 
conventional ./configure --prefix=/www --activate-module=src/modules/php4/libphp4.a in 
the apache dir.  Ran make and then make install.  We fixed the /www/conf/httpd.conf 
file to work with php, of course.  And started Apache with no problems up to this 

We used the following script:


$xslData = '

<xsl:template match="article">
    <table border="1" cellpadding="2" cellspacing="1">
            <td width="20%">
            <td width="80%">
                <h2><xsl:value-of select="title"></h2>
                <h3><xsl:value-of select="author"></h3>
                <xsl:value-of select="body">


$xmlData = '
<?xml version="1.0"?>
    <title>Learning German</title>
    <author>Sterling Hughes</author>
      Essential phrases:
      Komme sie mir sagen, woe die toilette es?<br>
      Eine grande beer bitte!<br>
      Noch einem bitte.<br>

if (xslt_process($xslData, $xmlData, $result)) // ---- This is line 42 BTW
    echo "Here is the brilliant in-depth article on learning";
    echo " German: ";
    echo "<br>n<br>";
    echo $result;
    echo "There was an error that occurred in the XSL transformation...n";
    echo "tError number: " . xslt_errno() . "n";
    echo "tError string: " . xslt_error() . "n";

If you'll notice it is the exact same script used in the xlst_process() example in the 
PHP online docs.

With much anticipation after much effort, blood, sweat and tears... we got the 
following error:

Fatal error: msgtype: error in /www/htdocs/index.php on line 42.

Attempting to execute any other xslt functions results in the same error.

I've tried a hundred different things and well I'm sick of compiling and compiling and 
compiling and am frankly out of ideas.  Can anyone fix this or tell me what I've done 
wrong?  Thanks.



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to