title: How to get value or create node names in XML like this (<nodeName.variableValue>)
body: <p>I have an XML file like this to work with.</p>
  
  <pre><code>    &lt;root&gt;
        &lt;ignore&gt;
          &lt;child&gt;1&lt;/child&gt;
        &lt;/ignore&gt;
        &lt;select.val&gt;
          &lt;child&gt;2&lt;/child&gt;
        &lt;/select.val&gt;
      &lt;/root&gt;
  </code></pre>
  
  <p><strong>Scenario 1:</strong></p>
  
  <p>I want to get the value of the child nodes under <em>&lt; select.val ></em>.</p>
  
  <p>I can get them with an xpath like this <strong>/root/select.val/child</strong>. The problem is <em>&lt; select.val ></em> might be different for another xml file.. it could be <em>&lt; select.val2 ></em> for another xml. If i use a wildcard (<strong>/root/*/child</strong>) it would also get the value under <em>&lt; ignore ></em>.</p>
  
  <p>Basically something like this <strong>/root/select.*/child</strong></p>
  
  <p><strong>Scenario 2:</strong> </p>
  
  <p>How could i generate an xml file with xslt where I set <em>val</em> from a variable/parameter. For example if the value of the variable/parameter is val3 then it would generate a node like this <em>&lt; select.val3 ></em>.</p>
  
  <p>Basically something like this.  <strong>&lt; select.&lt; value-of select="$val" > ></strong></p>
  
  <p><strong>PS:</strong> Is this possible or should it just use it as an attribute to the node?</p>