Glossaries:
After you have marked key words and names in a text, you can create a glossary of those names at the end of your encoded document. Then, using IDs and IDREFs, you can link the marked words in the text to more information about that word.

ID: an attribute that has a unique value, which identifies one particular element in your xml file. All IDs for this project should start with your initials (e.g. sh), and end with the first four letters of the word being IDed. In the case of names, use the first initial and first three letters of the surname (see below).

IDREF: an attribute that has a value that must correspond to an ID somewhere else in the document. The value refers or points to an element defined by an ID.
terms
(use the corresp attribute to link to item ids)
<term corresp="shLOL">LOL</term>! That is <term corresp="sh2">2</term> funny! Anyway... <term corresp="shttyl">ttyl</term>
...
</body>
<back>
<div1 type="term glossary"><list type="gloss">
<item id="shLOL"> <term>LOL</term> <gloss>laughing out loud</gloss></item>
<item id="sh2"> <term>2</term> <gloss>too</gloss></item>
<item id="shttyl"> <term>ttyl</term> <gloss>talk to you later</gloss></item>
</list>
</div1>
</back>
paraphrasing the thesis
(use the corresp attribute to link to item ids)
Here is the main idea of this paragraph: <seg type="thesis" corresp="shalwa">always eat your vegetables.</seg>
...
</body>
<back>
<div1 type="thesis glossary">
<list>
<item id="shalwa">Eat them every day!</item>
</list>
</div1>
names: historical figures
(use the key attribute to link to item ids)
<name type="person" key="shGWash">George Washington's</name> face appears on every dollar bill.
...
<div1 type="historical names glossary">
<list>
<item id="shGWash">
<persName><roleName>President</roleName> <foreName>George</foreName> <surname>Washington</surname>,</persName>

<seg type="birth information">
<date value="1732-02-22" certainty="certain">February 22, 1732</date>
<name type="place" key="shWest">Westmoreland County, Virginia</name>
</seg>

<seg type="death information">
<date value="1799-12-14" certainty="certain">December 14, 1799</date>
<name type="place" key="shMoun">Mount Vernon, Virginia</name>
</seg> 
On April 30, 1789, standing on the balcony of Federal Hall on Wall Street in New York, he took his oath of office as the first President of the United States. "As the first of every thing, in our situation will serve to establish a Precedent," he wrote James Madison, "it is devoutly wished on my part, that these precedents may be fixed on true principles."
</item>


</list>
</div1> 

names: places
(use the key attribute to link to item ids)
George Washington lived at his beautiful home in <name type="place" key="shMoun">Mount Vernon</name>
...
<div1 type="place names glossary">
<list>
<item id="shMoun">
<placeName><region key="Virginia01.jpg">Fairfax County, Virginia</region>, Mount Vernon</placeName> <seg type="founded"><date value="1674" certainty="approx">1674</date> </seg>
a town located in Fairfax County, Virginia. As of the 2000 census, the town had a total population of 28,582. It is near the Mount Vernon plantation, the home of George Washington.
</item>
</list>
</div1>