]> git.sesse.net Git - xml-template/blobdiff - php/attribute.php
Change the syntax for attributes from tag.attribute to tag/attribute; we
[xml-template] / php / attribute.php
index b4899b8e6d0461ce75bbd1570eb93a140125ee0d..626812ec9227cb5a7097db944e965940bcf6b7b3 100644 (file)
@@ -4,10 +4,10 @@ require('xml-template.php');
 $doc = XML_Template_process_file('../xml/clone.xml', array(
        'color' => 'red',
        '#things' => array(
-               array( 'li' => 'Raindrops on roses',    'li.class' => 'odd' ),
-               array( 'li' => 'Whiskers on kittens',   'li.class' => 'even' ),
-               array( 'li' => 'Bright copper kettles', 'li.class' => 'odd' ),
-               array( 'li' => 'Warm, woolen mittens',  'li.class' => 'even' )
+               array( 'li' => 'Raindrops on roses',    'li/class' => 'odd' ),
+               array( 'li' => 'Whiskers on kittens',   'li/class' => 'even' ),
+               array( 'li' => 'Bright copper kettles', 'li/class' => 'odd' ),
+               array( 'li' => 'Warm, woolen mittens',  'li/class' => 'even' )
        )
 ));
 print $doc->dump_mem();