Simplify declaration of views

I think it’s better to have a generic solution that may work on all XML structure and not only for views.

For me this is a specific use case of Templating the XML files