title: XSL hyperlinks on the html page
body: <p>I am studying XSL and I have question about generating bidirectional hyperlinks in one HTML file.</p>
  
  <p>For example, we have </p>
  
  <pre><code>&lt;person id="first"&gt;
  -&lt;name&gt;Bob&lt;/name&gt;
  -&lt;age&gt;19&lt;age&gt;
  &lt;person id="second"&gt;
  -&lt;name&gt;smith&lt;/name&gt;
  -&lt;age&gt;12&lt;age&gt;
  &lt;person id="third"&gt;
  -&lt;name&gt;Lisa&lt;/name&gt;
  -&lt;age&gt;30&lt;age&gt;
  </code></pre>
  
  <p>in the XML file, and I would like create 3 hyperlinks on one HTML page with XSLT.</p>
  
  <p>For example, on the top of the HTML page, we have three links:</p>
  
  <ol>
  <li>Bob</li>
  <li>Smith</li>
  <li>Lisa</li>
  </ol>
  
  <p>And on the bottom of the same HTML page, we have three links:</p>
  
  <ol>
  <li>Bob</li>
  <li>Smith</li>
  <li>Lisa</li>
  </ol>
  
  <p>If user clicks 1. Bob, we go to 4. Bob on the bottom of the page (1. Bob &lt;-> 4. Bob)</p>
  
  <p>If user clicks 4. Bob, we go to 1. Bob on the bottom of the page</p>
  
  <p>If user clicks 2. Smith, we go to 5. Smith the bottom of the page (5. Smith &lt;-> 5.Smith)</p>
  
  <p>If user clicks 5. Smith, we go to 2. Smith the bottom of the page</p>
  
  <p>I tried to use <code>&lt;a id="some value"&gt; &lt;/a&gt;</code></p>
  
  <p>However, it didn't really work.</p>
  
  <p>Can anyone give an example??</p>
  
  <p>Thanks.</p>