I m using php 4.5 and apache under red hat linux.

when i execute the script
<?

$xml_file = "recipes.xml";
// XSL for PC browser
$xsl_file = "pcrecipes.xsl";

$proc_handle = @xslt_create() or die("Can't create XSLT handle!");
// Open each file and assign it to a filehandle.
$xml_handle = fopen($xml_file, "r") or die("Can't open XML file!");
$xsl_handle = fopen($xsl_file, "r") or die("Can't open XSL file!");
// Read in the file contents.
$xml_content = fread($xml_handle, filesize($xml_file));
$xsl_content = fread($xsl_handle, filesize($xsl_file));
// Perform the transformation.
//xslt_process($xsl_content, $xml_content, $xsl_tfmtion);
xslt_process($xsl_content, $xml_content, $xsl_tfmtion);

// Output the transformed document.

echo $xsl_tfmtion;
// Free up the processor resources.
xslt_free($proc_handle);

?>
i get "the page can not be dispayed" you can see it in 
http://dsl.aldeax.com/XML/sablot.php

i don t understand whats happening.
if i coment the line xslt_process($xsl_content, $xml_content, $xsl_tfmtion); i have no 
error.
and the page is correct..
if i change the name of the sources (if i put wrong ones) the script gives me error... 
so the php is working ok.
if i quit the nsxsl gives me error that say that i have no namespace for the xsl.
but in the correct term i just get a page that say the page can not be displayed and 
all the bla bla bla of the explorer.



--------------------------------------------------------------------------
13/06/2001
Pavel Hlavnicka <[EMAIL PROTECTED]>
--------------------------------------------------------------------------
>
>Hmm... could you be more specific, please?
>
>What environmet are you using? What is the error reported....
>
>Pavel
>
>[EMAIL PROTECTED] wrote:
>
>> Hello i m a new user and i need urgent help. when i process my xml with the xsl i 
>get  The page cannot be displayed.
>> what i m doing wrong i have the last version... can somebody send me a example?
>> 
>
>
>
>-- 
>Pavel Hlavnicka
>Ginger Alliance
>www.gingerall.com
>
>
>

Reply via email to