Run the following command: xsltproc teixsl-html/teihtml.xsl tei.xml
Open the resulting index.html file in your Web browser. Interesting.
Edit the file named tei-stylesheets/teihtml-param.xsl and change the value of institution from Oxford University Computing Services to your name.
Repeat Steps #1 and #2. Cool!
Transform the TEI file into XHTML
Exercise - Transform TEI to HTML
In this exercise you will transform one or more TEI files into rudimentary HTML files.
Browse the contents of the xml-data/tei directory. There you will find sets of valid TEI files ulti- mately destined for the author's Alex Catalogue of Electronic Texts.
Open the XSTL stylesheet at xslt/tei2html.xsl. It is a relatively uncomplicated stylesheet outputting a standard HTML DTD declaration, a full head element, table of contents, and simply formatted body elements. Probably the trickiest aspect of the stylesheet is the way it uses the TEI rend attrib- ute to display HTML p elements.
Open up a command prompt and change to the root of the workshop's directory.
Transform Mark Twain's A Connecticut Yankee In King Arthurs Court using xsltproc: xsltproc -o
twain.html xslt/tei2html.xsl xml-data/tei/twain-connecticut-1081310767.xml .
The results should be a file named twain.html in the root of the workshop's directory. Open it in your browser and then view the source.