Thankx Goose, your example works for me too. 
I think the problem is most of the examples given
in the PHP manual buggy. I tries cut and paste and
ran into lots of problems.

saikat

--- "Peltzer, Matthew" <[EMAIL PROTECTED]> wrote:
> I was told to use this sort of code:
> 
>       $xml_file = "your_file.xml";
>       $xsl_file = "your_file.xsl";
>        
>       $fd = fopen ($xml_file, "r");
>       $xml = fread ($fd, filesize ($xml_file));
>       fclose ($fd);
>       $fd = fopen ($xsl_file, "r");
>       $xsl = fread ($fd, filesize ($xsl_file));
>       fclose ($fd);
> 
>       xslt_process($xsl, $xml, $result);
>       echo $result;   //or whatever
> 
> the main issue is reading the source files into
> strings, and passing those
> to xslt_process.
> 
> this works for me on win2k + apache1.3.14 +
> php4.0.4pl1 + sablotron .44 and
> rh7.0 + apache1.3.14 + php4.0.5-dev + sablotron .51
> + expat 1.95.1
> 
> 
> -----Original Message-----
> From: Saikat Ghosh [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 02, 2001 18:10
> To: Sablotron Mailing List
> Subject: RE: [Sab] Fatal error: msgtype: error
> 
> 
> 
> Hi,
> I have the same issue where the Sablotron command
> line works fine but when invoked via PHP I get the
> exact same error. I am running on Linux 6.2 with
> PHP current and Sablotron 0.51
> 
> saikat
> -----Original Message-----


=====

Saikat Ghosh
4261 Norwalk Drive, #Y202
San Jose, CA 95129
USA


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

Reply via email to