# How can I convert my TEI headers to CMDI?

**URL:** <https://forum.clarin.eu/t/how-can-i-convert-my-tei-headers-to-cmdi/719>\
**Category:** Metadata\
**Tags:** metadata, cmdi\
**Created:** [26 February 2025 14:15 UTC](https://forum.clarin.eu/t/how-can-i-convert-my-tei-headers-to-cmdi/719 "2025-02-26T14:15:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![twagoo](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.clarin.eu/twagoo/32/11_2.png) [@twagoo](https://forum.clarin.eu/u/twagoo)\
**Post date:** [26 February 2025 14:15 UTC](https://forum.clarin.eu/t/how-can-i-convert-my-tei-headers-to-cmdi/719/1 "2025-02-26T14:15:29Z")

</div>

There is no general procedure to do this, as TEI has many variants and extensions. However, you could follow the following general workflow:

- Inspect your TEI headers and decide what the relevant parts are. Some information (e.g. layout tags etc.) might be lost during the conversion.
- Compare your needs with one of the existing TEI profiles ([teiHeader type 1](http://catalog.clarin.eu/ds/ComponentRegistry?item=clarin.eu:cr1:p_1282306194508), [teiHeader type 2](http://catalog.clarin.eu/ds/ComponentRegistry?item=clarin.eu:cr1:p_1345180279115), [teiHeader type 3](http://catalog.clarin.eu/ds/ComponentRegistry?item=clarin.eu:cr1:p_1380106710826)) in the CMDI component registry. If it fulfills your needs, go to the next steps. If it does not, use the TEI profile as a basis to create your own CMDI profile.
- Create an XSLT that generates CMDI instances (according to the profile that you chose in the previous step) from the TEI files. (Have a look at [olac2cmdi.xsl](https://github.com/clarin-eric/metadata-conversion/tree/master/olac-cmdi) and [imdi2clarin.xsl](http://www.clarin.eu/cmd/xslt/imdi2clarin.xsl) for some inspiration).
