An Introduction to XML (TEI):

by Laura Mandell, Miami Univ. of Ohio

C. How to Insert Notes and D. Links

(the above image is linked to a picture of the whole document in which it appears)

C. In XML documents, you can make a superscript note number appear in the body of your text that is linked to a note appearing at the foot of the text by inserting all the contents of the note at the place in the text where the superscript note number alone will appear. -- Right, this isn't like HTML at all; it is probably how Word works (if you could see what's going on in its guts, so to speak). To make a note, put right in the place in your text where you want the superscript number linked to that note to appear the code <note></note>

Between that code, you will put the content of your note. Now you'll have to add some information to the initial code: the note number, the place where you want the notes to appear (="foot"), and the person who is responsible for that note.

D. In this note, I have included a link to an outside Web site. I do so by enclosing whatever words I want to be linking words (underlined in blue, usually, when they appear on a Web page) in <xref></xref> codes. The url goes inside the initial xref code.

After being transformed, the top of my document, containing the note number superscript, looks like this:

The bottom looks like this:

 

E. Encoding a stanza or a paragraph:

The coding for "E" must be fairly self-evident: <lg type="stanza"></lg> (line group code) encloses stanzas; make certain to insert a line break <lb/> between stanzas.

Enclose paragraphs with <p></p>, just as in HTML.


If you wish to go on, you can see how to

(A) encode frontmatter

(B) insert figures (images)

(C) insert footnotes

(D) links to other site

(E) stanzas and paragraphs

(F) The whole document

(G) Samples


Back to Top

Back to Table of Contents