added function to serve as mako filter when creating xml
more docs