<l>There lives a young girl in Lancaster town,</l> <l>Whose hair is a shiny pale green.</l> <l>She lives at the bottom of Morgan's farm pond,</l> <l>So she's really too hard to be seen.</l>
</lg> </body> <back></back> </text> </TEI.2>
TEI files have historically been created and then indexed/rendered with a set of middleware programs such as XPAT. With the increasing availability of XML technologies such as CSS and XSLT, a number of stylesheets have become available. The official TEI website offers links a few of these things, and the XSLT stylesheets work quite well.
Assuming you were to save the TEI text above with the filename getting.xml, you would be able to cre- ate a very nice XHTML document using the XSLT stylesheets and xstlproc like this: xsltproc tei- stylesheets/teihtml.xsl tei-getting.xml .
Here some same output: