2
Test 12: Using Associative Array of Parameters
4
<?php require_once dirname(__FILE__) .'/skipif.inc'; ?>
7
echo "Test 12: Using Associative Array of Parameters";
9
$dom = new domDocument;
10
$dom->load(dirname(__FILE__)."/xslt.xml");
12
echo "Error while parsing the document\n";
16
$xsl = new domDocument;
17
$xsl->load(dirname(__FILE__)."/xslt012.xsl");
19
echo "Error while parsing the document\n";
23
$proc = new xsltprocessor;
25
echo "Error while making xsltprocessor object\n";
30
$proc->importStylesheet($xsl);
37
$proc->setParameter( "", $parameters);
40
print $proc->transformToXml($dom);
45
Test 12: Using Associative Array of Parameters
46
<?xml version="1.0" encoding="iso-8859-1"?>