X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=php7-swig%2Fattribute2.php;fp=php7-swig%2Fattribute2.php;h=8d6c99bd5577017b7e639988cf243a3771aaa1ee;hb=3c53a0b7306711683492be3bd0c84bcb92902d4f;hp=0000000000000000000000000000000000000000;hpb=7d1da52761b9ec9747c4400609658a379a34392c;p=xml-template diff --git a/php7-swig/attribute2.php b/php7-swig/attribute2.php new file mode 100644 index 0000000..8d6c99b --- /dev/null +++ b/php7-swig/attribute2.php @@ -0,0 +1,14 @@ + 'blue', + '#things' => XML_Template_alternate('li/class', array( + array( 'li' => 'Raindrops on roses' ), + array( 'li' => 'Whiskers on kittens' ), + array( 'li' => 'Bright copper kettles' ), + array( 'li' => 'Warm, woolen mittens' ), + ), array('odd', 'even')) +), true); +print XML_Template_convert_doc_to_string($doc); +?>