<myDoc>
 <body>
  <p>A <term def="d001">doppelgänger</term> is basically <def xml:id="d001">the
  counterpart of a person</def>. It is almost the same as an 
  <syn ref="#alterego">alter ego</syn>, but with a more sinister connotation. 
  Sometimes the word "fetch" is also used.</p>
 </body>
 <definitions>
  <entry xml:id="alterego">
   <dt>alter ego</dt>
   <dd>A second self. Figurative sense: trusted friend.</dd>
   <origin>Latin, literally: "second I"</origin>
  </entry>
 </definitions>
</myDoc>