Peter,

> ok, guess i have to solve my own problems here ;)

maybe you could solve mine too? 8)

> I discovered there actually IS a way to make
> XSLT_RUN() work in PHP404pl1.
> The problem is that the PHP module does not pass the
> right parameters to the
> Sablotron module. 

With the following code, I run all-bup.xml through
contacts.xslt using sablotron as PHP-module; this
works.
No I want to pass values for variables from an
HTML-form to the XSLT.
Would I replace the line
xslt_process($xsl_content, $xml_content,
$xsl_tfmtion);
with
XSLT_RUN()
?
Here are two of the variables from the HTML-form:
chosen_first_name and chosen_last_name

How exactly would I write the code inside the
brackets, to pass any value from the form to the XSLT
(in my case)?

Do I include something like
$HTTP_GET_VARS["chosen_first_name"]
?


PHP:

$xml_file = "all-bup.xml";
$xsl_file = "contacts.xslt";
$parser = @xslt_create();
$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!");
$xml_content = fread($xml_handle,
filesize($xml_file));
$xsl_content = fread($xsl_handle,
filesize($xsl_file));
xslt_process($xsl_content, $xml_content,
$xsl_tfmtion);
echo $xsl_tfmtion;
xslt_free($parser);


Thanks,
Tobi


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

Reply via email to