]> git.sesse.net Git - xml-template/blob - attribute.php
Add include support to the PHP version.
[xml-template] / attribute.php
1 <?php
2 require('xml-template.php');
3
4 $doc = XML_Template_process_file('clone.xml', array(
5         'color' => 'red',
6         '#things' => array(
7                 array( 'li' => 'Raindrops on roses',    'li.class' => 'odd' ),
8                 array( 'li' => 'Whiskers on kittens',   'li.class' => 'even' ),
9                 array( 'li' => 'Bright copper kettles', 'li.class' => 'odd' ),
10                 array( 'li' => 'Warm, woolen mittens',  'li.class' => 'even' )
11         )
12 ));
13 print $doc->dump_mem();
14 ?>