3 dl("XML_Template_SWIG.so");
4 $doc = 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' ),
10 array( 'li' => 'Bright copper kettles' ),
11 array( 'li' => 'Warm, woolen mittens' ),
12 ), array('odd', 'even'))
14 output_to_fd_and_free($doc, 1);