2 include("xml-template.php");
4 $doc = XML_Template_process_file('../xml/clone.xml', array(
6 '#things' => XML_Template_alternate('li/class', array(
7 array( 'li' => 'Raindrops on roses' ),
8 array( 'li' => 'Whiskers on kittens' ),
9 array( 'li' => 'Bright copper kettles' ),
10 array( 'li' => 'Warm, woolen mittens' ),
11 ), array('odd', 'even'))
13 print XML_Template_convert_doc_to_string($doc);