treat attributes values in template
more templating and introduction of XSLT