Hi Matthew,
I second that. I use Sablot .50 under w2k pro with exactly the same
symptoms.
It seems to me that since sabcmd compiles ok, the problem must reside in the
PHP library (php_sablot.dll). There was a thread on this issue on a forum,
and a call in the PHP database, which has been closed by the developer
without solution (i guess due to lack of response).
I discovered that reading the XSL/XML file first and sending them to the
parser using XSLT_PROCESS (this is where our problem differs) works great,
while XSLT_RUN doesn't work at all. Perhaps PHP_SABLOT.DLL looks in another
directory or something. Sabcmd runs ok at my installation as well, so there
seems nothing wrong with the Sablotron library.
There also seems to be a problem in the (documentation of?) error handling
by the Sablotron module, since syntax errors in either the XSL or XML file
produces the same output as XSLT_RUN().
My guess is we have to forward this problem to the PHP developers, since it
doesn't appear to be a Sablotron issue (i found no Linux users with this
problem in forums etc.). Know any developers at PHP? ;)
Later!
Peter
-----Original Message-----
From: Peltzer, Matthew [mailto:[EMAIL PROTECTED]]
Sent: woensdag 28 februari 2001 21:58
To: Sablotron Mailing List
Subject: [Sab] Fatal error: msgtype: error
Importance: High
I am running apache 1.3.14 with php4.0.4pl1 and sablotron .44 under win2000.
any time I try to use the functions to transform xml with xsl (xslt_run(),
xs;t_process(), etc) i receive the error:
Fatal error: msgtype: error in d:\my documents\my webs\gooch\guestbook.php
on line 19
attached is my code (.php, .xml, .xsl)
here is the only line in phpinfo() about sablot:
sablot
Sablotron XSLT support enabled
Does anyone have any idea what is going on here, and/or how to fix the
error?
Matthew Peltzer
[EMAIL PROTECTED]
ps
here is the output from sabcmd from command line, which is correct:
$>sabcmd guestbook.xsl guestbook.xml
<p class="section">[02.23.2001 @ 21:55]</p><br><p class="content">again,
this is
only a test.\n\n - [yoda the great from 199.237.172.242]</p><p
class="section">
[02.14.2001 @ 23:44]</p><br><p class="content">your mom was here -
[yourmom@your
mom.com - from 199.237.172.228]</p><p class="section">[02.13.2001 @
23:18]</p><b
r><p class="content">charles is gonna hack gooch's guestbook until the day
he di
es. - [asdf]</p><p class="section">[02.10.2001 @ 23:33]</p><br><p
class="content
">goose is gonna learn to log. this can not be good. - [test]</p><p
class="sect
ion">[02.08.2001 @ 18:21]</p><br><p class="content">goose is a wussie -
[charles
]</p><p class="section">[02.04.2001 @ 00:20]</p><br><p class="content">this
is t
he first entry into the guestbook. - [gooch]</p>
02.23.2001
21:55
again, this is only a test.\n\n
yoda the great from 199.237.172.242
02.14.2001
23:44
your mom was here
[EMAIL PROTECTED] - from 199.237.172.228
02.13.2001
23:18
charles is gonna hack gooch's guestbook until the day he
dies.
asdf
02.10.2001
23:33
goose is gonna learn to log. this can not be good.
test
02.08.2001
18:21
goose is a wussie
charles
02.04.2001
00:20
this is the first entry into the guestbook.
gooch