# XSLT converting Composition-\>HTML available?

**URL:** <https://discourse.openehr.org/t/xslt-converting-composition-html-available/14854>\
**Category:** Technical (archive)\
**Created:** [19 November 2008 11:07 UTC](https://discourse.openehr.org/t/xslt-converting-composition-html-available/14854 "2008-11-19T11:07:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![erik.sundvall](https://discourse.openehr.org/user_avatar/discourse.openehr.org/erik.sundvall/32/1961_2.png) [@erik.sundvall](https://discourse.openehr.org/u/erik.sundvall)\
**Post date:** [19 November 2008 11:07 UTC](https://discourse.openehr.org/t/xslt-converting-composition-html-available/14854/1 "2008-11-19T11:07:31Z")

</div>

Hi!

Does anybody want to share their XSLT-script for converting openEHR  
Compositions (in XML form) to a simple HTML view?

We're taking the lazy way of asking for this before sitting down to  
create one ourselves 🙂

Best regards,  
Erik Sundvall  
erisu@imt.liu.se [http://www.imt.liu.se/~erisu/](http://www.imt.liu.se/~erisu/) Tel: +46-13-227579

---

<div class="post-metadata">

**Author:** ![Lisa\_Thurston1](https://discourse.openehr.org/letter_avatar_proxy/v4/letter/l/90db22/32.png) [@Lisa\_Thurston1](https://discourse.openehr.org/u/Lisa_Thurston1)\
**Post date:** [21 November 2008 01:27 UTC](https://discourse.openehr.org/t/xslt-converting-composition-html-available/14854/2 "2008-11-21T01:27:46Z")

</div>

Hi Erik and all

To provide the community with a start on this, I've put a generic  
'Composition XML to HTML' transform on the openEHR wiki. Ocean has been  
using this for EhrView demonstrations.

[http://openehr.org/wiki/display/dev/openEHR+Composition+XML+to+HTML](http://openehr.org/wiki/display/dev/openEHR+Composition+XML+to+HTML)

It would be good to feed back updates to the community so everyone can  
benefit.

Cheers  
Lisa

Erik Sundvall wrote:

---

<div class="post-metadata">

**Author:** ![erik.sundvall](https://discourse.openehr.org/user_avatar/discourse.openehr.org/erik.sundvall/32/1961_2.png) [@erik.sundvall](https://discourse.openehr.org/u/erik.sundvall)\
**Post date:** [21 November 2008 10:51 UTC](https://discourse.openehr.org/t/xslt-converting-composition-html-available/14854/3 "2008-11-21T10:51:30Z")

</div>

Hi!

Thank you very much for swift and comprehensive responses (on-list  
from Lisa and off-list from David)!  
This saves us some precious time.

I have updated the page  
[http://openehr.org/wiki/display/dev/openEHR+Composition+XML+to+HTML](http://openehr.org/wiki/display/dev/openEHR+Composition+XML+to+HTML) to  
include the XSLT+CSS donated from David too.

Best regards,  
Erik Sundvall  
erisu@imt.liu.se [http://www.imt.liu.se/~erisu/](http://www.imt.liu.se/~erisu/) Tel: +46-13-227579

---

<div class="post-metadata">

**Author:** ![system](https://discourse.openehr.org/uploads/default/original/2X/f/f0a1dedb20c42747bddcafd6c7df9db5f34f003c.svg) [@system](https://discourse.openehr.org/u/system)\
**Post date:** [21 November 2008 14:25 UTC](https://discourse.openehr.org/t/xslt-converting-composition-html-available/14854/4 "2008-11-21T14:25:02Z")

</div>

Hi Eric

I believe we need an agreed generic XSLT for this that is considered the  
standard and should seek comments. What this means is that clinicians will  
see the information in any composition according to this standard script.

It needs to show all meaningful attributes for the clinical care of the  
person. Clinicians need to be involved in the agreed basic output.

This is an "I can live with that" scenario as our tastes will all be  
different.

Cheers, Sam
