X hits on this document

386 views

0 shares

1 downloads

0 comments

86 / 142

A.

Run the following command: xsltproc teixsl-html/teihtml.xsl tei.xml

B.

Open the resulting index.html file in your Web browser. Interesting.

C.

Edit the file named tei-stylesheets/teihtml-param.xsl and change the value of institution from Oxford University Computing Services to your name.

D.

Save teixsl-html/teihtml-param.xsl.

E.

Repeat Steps #1 and #2. Cool!

TEI

2.

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.

  • 1.

    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.

  • 2.

    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.

  • 3.

    Open up a command prompt and change to the root of the workshop's directory.

  • 4.

    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 .

5.

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.

78

Document info
Document views386
Page views392
Page last viewedSun Dec 04 08:14:24 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments