title: How to dynamically add meta tag using XSLT
body: <p>I have a specific problem where I have to add a meta tag to a HTML using XSLT.</p>
  
  <p>What I need to do is to keep the body and add a meta tag with the content of the tag 'option'. </p>
  
  <p>The code that I want is something like that, or something that do what this was supposed to do:</p>
  
  <pre><code> &lt;xsl:template match="/"&gt;
    &lt;html&gt;
      &lt;head&gt;
        &lt;meta name="option" content="   &lt;xsl:value-of select="//option" /&gt;   " /&gt;
      &lt;/head&gt;
      &lt;body&gt;
        &lt;xsl:value-of select="html/body" /&gt;
      &lt;/body&gt;
    &lt;/html&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>You can see that the content of the meta tag is also a value that I want to get from the document.</p>
  
  <p>For example, if I use the following code, it works fine:</p>
  
  <pre><code> &lt;xsl:template match="/"&gt;
    &lt;html&gt;
      &lt;head&gt;
        &lt;meta name="option" content="Test" /&gt;
      &lt;/head&gt;
      &lt;body&gt;
        &lt;xsl:value-of select="html/body" /&gt;
      &lt;/body&gt;
    &lt;/html&gt;
  &lt;/xsl:template&gt;
  </code></pre>
  
  <p>However, the content will be fixed as "Test".</p>
  
  <p>There is any way to add a dynamic meta tag using just XSLT?</p>
  
  <p>Thank you in advance.</p>