# templates and views **Category:** [Technical (archive)](https://discourse.openehr.org/c/technical-archive/156) **Created:** 2011-09-23 19:56 UTC **Views:** 5 **Replies:** 1 **URL:** https://discourse.openehr.org/t/templates-and-views/14194 --- ## Post #1 by @Grzegorz_Wojciechows Hi all, I am preety new to openEHR and even newer to all these kinds of mailiing lists so please correct me if this question is sent to wrong list. I am now implementing openEHR for my master's thesis and stuck with views. I have figured out that openEHR template is basically a scheme for the view. It only describes what elements the view is going to contain, but it does not says how are they placed. So I have taken Demo-with-hide-on-form template from clinical manager, wrote XSLT for it and got forms where I can put data. But now I have no idea how from template xml file create Compoistion java object. I am using Spring MVC for my gui app. Anybody can help? Thanks in advance, Grzegorz Wojciechowski University of Science (AGH) Krakow, Poland --- ## Post #2 by @Hugh_Leslie1 Hi Grzegorz I think you have misunderstood the use of Templates a little. A template is actually a constrained use case for one or more archetypes. This could be a gui but is just as likely to be a data instance or an XML schema for integration or any number of other things. There has certainly been a lot of work in the community around adding hints to Templates for use as views and automatic gui generation - you can find some of this work on the openEHR wiki I think. Have a look here - [http://www.openehr.org/wiki/display/projects/Open+EHR-Gen+Framework](http://www.openehr.org/wiki/display/projects/Open+EHR-Gen+Framework) regards Hugh --- **Canonical:** https://discourse.openehr.org/t/templates-and-views/14194 **Original content:** https://discourse.openehr.org/t/templates-and-views/14194