title: How to make a linkTag from the specific Tag in a XML file using XSLT
body: <p>I want to change the specifics Tags in following XML. The tags <em><code>&lt;linkSource&gt;</code></em> should be convert to  <code>&lt;fo:basic-link internal-destination=&quot;boothId&quot;&gt;</code> and the tag  <code>&lt;linkDestination&gt;</code> should be convertet to <code>&lt;fo:block id=&quot;boothId&quot;&gt;</code>.</p>
  <pre><code>&lt;root&gt;
  &lt;directCompNotes&gt;
    &lt;paragraph&gt;Go to:&lt;/paragraph&gt;
    &lt;bullet-list&gt;
      &lt;item&gt;
        &lt;paragraph&gt;
          &lt;linkSource&gt;
            Booth
          &lt;/linkSource&gt;
        &lt;/paragraph&gt;
      &lt;/item&gt;
      &lt;item&gt;
        &lt;paragraph&gt;
          WithoutLinkSource
        &lt;/paragraph&gt;
      &lt;/item&gt;
    &lt;/bullet-list&gt;
  &lt;/directCompNotes&gt;
  &lt;directComp&gt;
    &lt;paragraph&gt;
      &lt;linkDestination&gt;
        Explainition
      &lt;/linkDestination&gt;
    &lt;/paragraph&gt;
  &lt;/directComp&gt;
  &lt;/root&gt;
  </code></pre>
  <p>That is what I tried to do:</p>
  <pre><code>&lt;xsl:template match=&quot;root&quot;&gt;
    
        &lt;xsl:for-each select=&quot;directCompNotes/bullet-list/item/paragraph/linkSource&quot;&gt;
          &lt;fo:basic-link internal-destination=&quot;boothId&quot;&gt;
            &lt;xsl:value-of select=&quot;.&quot;/&gt;
          &lt;/fo:basic-link&gt;
        &lt;/xsl:for-each&gt;
      
    &lt;/xsl:template&gt;
  </code></pre>
  <p>The goal is that I should be able to create a link from &quot;Booth&quot; to &quot;Explanition&quot;. All of the linkSource and linkDestinition are in the XML file already defined.</p>
  <p>Can anyone help me please?</p>
  <p>(Sorry, My English is not very well, but I hope I was able to explain the question well).</p>