Php parameter to xslt
XML / XSL
1
Posts
1
Posters
0
Views
1
Watching
-
I read somewhere I could pass parameter like this:
$manufacturer = $_POST['manufacturer'];
$cameraType = $_POST['camType'];
$priceRange = $_POST['priceRange'];$params = array('maker' => $manufacturer,'camType' => $cameraType,'pRange' => $priceRange); $xsltTransformer=xslt\_create(); $htmlOutput=xslt\_process($xsltTransformer,"camera.xml","camera.xsl", NULL, array(), $params); xslt\_free($xsltTransformer);
or
$htmlOutput=xslt_process($xsltTransformer,"camera.xml","camera.xsl", $params);
and my xslt will have this:
< xsl:param name="maker">All< /xsl:param>
..so on Which doesnt work and return always 'All'. I am using Sablotron library for transformation. How can I pass parameter correctly?