title: creating dynamic xml elements using xslt
body: <p>i am using XSLT to transfer xml object values, as am new to this technology,  based on , value i need to create the xml elements for output.  please help me on this, </p>
  
  <h2>below is my requirements</h2>
  
  <p>input xml</p>
  
  <pre><code>&lt;list&gt;
      &lt;creature&gt;
          &lt;type&gt;Animal&lt;/type&gt;
          &lt;explicit-path&gt;
              &lt;name&gt;AnimalName&lt;/name&gt;
              &lt;constraints&gt;
                  &lt;nd-ref&gt;fourlegs&lt;/nd-ref&gt;
                  &lt;interface&gt;runs&lt;/interface&gt;
              &lt;/constraints&gt;
          &lt;/explicit-path&gt;
      &lt;/creature&gt;
  &lt;creature&gt;
          &lt;type&gt;Bird&lt;/type&gt;
          &lt;explicit-path&gt;
              &lt;name&gt;BirdName&lt;/name&gt;
              &lt;constraints&gt;
                  &lt;nd-ref&gt;twolegs&lt;/nd-ref&gt;
                  &lt;interface&gt;flies&lt;/interface&gt;
              &lt;/constraints&gt;
          &lt;/explicit-path&gt;    
      &lt;/creature&gt;     
  &lt;/list&gt;
  </code></pre>
  
  <ul>
  <li><p>Expected Output  </p>
  
  <pre><code>&lt;Animal&gt;
  &lt;name&gt;animalName&lt;/name&gt;
  &lt;constraints&gt;
      &lt;nd-ref&gt;fourlegs&lt;/nd-ref&gt;
      &lt;interface&gt;runs&lt;/interface&gt;
  &lt;/constraints&gt;
  &lt;/Animal&gt;
  &lt;Bird&gt;
  &lt;name&gt;birdName&lt;/name&gt;
  &lt;constraints&gt;
      &lt;nd-ref&gt;twolegs&lt;/nd-ref&gt;
      &lt;interface&gt;flies&lt;/interface&gt;
  &lt;/constraints&gt;
  &lt;/Bird&gt;
  </code></pre></li>
  </ul>