Hi,
most of my previous message disappeared, so here's my
second try.
I'm still trying to pass variable-values from an
HTML-form through PHP to an XSLT that gets processed
by sablotron as PHP-module.
In the HTML-form, there is
INPUT type="text" name="chosen_first_name"
In the XSLT, there is
xsl:param name="chosen_first_name"
so I guess the following PHP should somehow pass the
value for the variable to the XSLT:
(it works to run the XML through the XSLT)
$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($proc_handle);
Maybe xslt_run:
bool xslt_run ([resource xh string xslt_file string
xml_data_file string result array xslt_params array
xslt_args]]])
should do the trick?
How do I put in all the form-variables?
Or at least one:
$chosen_first_name =
$HTTP_GET_VARS["chosen_first_name"]
?
Tobi
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/