For Programmers: Free Programming Magazines  


Home > Archive > PHP Language > December 2006 > The following code fails









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author The following code fails
Asper Faner

2006-12-11, 7:01 pm

<?php
$filename = "mess.xsl";
$xmldoc = domxml_open_file("mess.xml");
$xsldoc = domxml_xslt_stylesheet_file($filename);
$result = $xsldoc->process($xmldoc);
echo $xsldoc->result_dump_mem($result);
?>

I see nothing on the screen.

But if I execute xsl and use no php, I can see the message "welcome" in
xml file

Do you know why ?

Thanks

-Lost

2006-12-11, 7:01 pm

"Asper Faner" <aspmanualator_1234567890@yahoo.com> wrote in message
news:1165602670.405827.68530@l12g2000cwl.googlegroups.com...
> <?php
> $filename = "mess.xsl";
> $xmldoc = domxml_open_file("mess.xml");
> $xsldoc = domxml_xslt_stylesheet_file($filename);
> $result = $xsldoc->process($xmldoc);
> echo $xsldoc->result_dump_mem($result);
> ?>
>
> I see nothing on the screen.
>
> But if I execute xsl and use no php, I can see the message "welcome" in
> xml file
>
> Do you know why ?
>
> Thanks


Um... maybe you are not display errors and "domxml" is not installed?

-Lost


Asper Faner

2006-12-11, 7:01 pm


-Lost wrote:
> "Asper Faner" <aspmanualator_1234567890@yahoo.com> wrote in message
> news:1165602670.405827.68530@l12g2000cwl.googlegroups.com...
>
> Um... maybe you are not display errors and "domxml" is not installed?
>
> -Lost


Thanks but what do you mean by lost ?

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com