TRansform XML and XSL with PHP

wxdqz

New Member
Hello to all,
I write this code php to transform XSL and Xml:


<?php
$xmlfile = "order.xml";
$xslfile = "order.xsl";
$args = array("column"=>"Quantity", "order"=>"descending");
$engine = xslt_create();
$output = xslt_process($engine, $xmlfile, $xslfile, NULL, NULL, $args);
print $output;
xslt_free($engine);
?>


My question is: how I can pass a parameter ?

For example:

page.php?Cat=WebMaster

in ASP I write this two line:

cat = Request.QueryString("Cat")

for to pass XSL

xslproc.addParameter "mastercategoria",Cat
xslproc.transform

Thanks very much to help me,
Andrea
 
Back
Top