]> git.sesse.net Git - xml-template/blobdiff - php/attribute2.php
Change the syntax for attributes from tag.attribute to tag/attribute; we
[xml-template] / php / attribute2.php
index e1450458da7dd69fd920e469ce6f61da187e6bf3..186828f312af85194cf419379df64053f65fb6b9 100644 (file)
@@ -3,7 +3,7 @@ require('xml-template.php');
 
 $doc = XML_Template_process_file('../xml/clone.xml', array(
        'color' => 'blue',
-       '#things' => XML_Template_alternate('li.class', array(
+       '#things' => XML_Template_alternate('li/class', array(
                array( 'li' => 'Raindrops on roses' ),
                array( 'li' => 'Whiskers on kittens' ),
                array( 'li' => 'Bright copper kettles' ),