--TEST-- Test 12: Using Associative Array of Parameters --SKIPIF-- --FILE-- load(dirname(__FILE__)."/xslt.xml"); if(!$dom) { echo "Error while parsing the document\n"; exit; } $xsl = new domDocument; $xsl->load(dirname(__FILE__)."/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