I want to generate HTML form using openEHR OPT Templates. A template generally looks like this (sample OPT file)
It is like an XML of some form I guess with some extra information and I want to convert it to HTML using python but I don't have an XSL file. I do have the XSD which I am using for validation later using lxml but I don't think it can help in the conversion. There are many different types of templates, so is there a way I can do it? Any help is appreciated.
I would say you can go either the XSLT way for generating your transformation or trying to use the existing python openEHR lib https://github.com/crs4/pyEHR, but I'm not sure if they support OPT