--TEST-- Test 12: Using Associative Array of Parameters --EXTENSIONS-- xsl --FILE-- load(__DIR__."/xslt.xml"); if(!$dom) { echo "Error while parsing the document\n"; exit; } $xsl = new domDocument; $xsl->load(__DIR__."/xslt012.xsl"); if(!$xsl) { echo "Error while parsing the document\n"; exit; } $proc = new xsltprocessor; if(!$proc) { echo "Error while making xsltprocessor object\n"; exit; } $proc->importStylesheet($xsl); $parameters = Array( 'foo' => 'barbar', 'foo1' => 'test', ); $proc->setParameter( "", $parameters); print "\n"; print $proc->transformToXml($dom); print "\n"; ?> --EXPECT-- Test 12: Using Associative Array of Parameters
barbar test a1 b1 c1