small template attribute language implemention for PHP (using xml_parse)