Improve flexibility of user spec
Use HAML templates for rendering XML