title: Create XSLT for XML from XML
body: <p>I have to convert XML to another XML through XSL. I have following XML</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;SKOS xmlns="http://www.w3.org/2004/02/skos/core#" xmlns:skos="http://www.w3.org/2004/02/skos/core#" xmlns:skosxl="http://www.w3.org/2008/05/skos-xl#"&gt;
      &lt;skos:descriptor ID="7769" TAGNO="111" ISVALID="true"&gt;
          &lt;skos:altLabel&gt;ABYSSINIAN Expedition (1867-1868)&lt;/skos:altLabel&gt;
          &lt;skos:prefLabel&gt;Abyssinian Expedition (1867-1868)&lt;/skos:prefLabel&gt;
          &lt;skos:broader&gt;Ethiopia -- History -- 1490-1889&lt;/skos:broader&gt;
          &lt;skos:broader&gt;Great Britain -- History -- Victoria, 1837-1901&lt;/skos:broader&gt;
          &lt;skosxl:hiddenLabel&gt;Expedition to Abyssinia (1867-1868)&lt;/skosxl:hiddenLabel&gt;
          &lt;skosxl:hiddenLabel&gt;British Expedition to Abyssinia (1867-1868)&lt;/skosxl:hiddenLabel&gt;
          &lt;skosxl:hiddenLabel&gt;Magdala Campaign, 1867-1868&lt;/skosxl:hiddenLabel&gt;
          &lt;skosxl:hiddenLabel&gt;Napier Expedition, 1867-1868&lt;/skosxl:hiddenLabel&gt;
      &lt;/skos:descriptor&gt;
  &lt;/SKOS&gt;
  </code></pre>
  
  <p>and I want output like this</p>
  
  <pre><code>&lt;add&gt;
  &lt;doc&gt;
      &lt;field name="id"&gt;7769&lt;/field&gt;
      &lt;field name="TAGNO"&gt;111&lt;/field&gt;
      &lt;field name="altLabel"&gt;ABYSSINIAN Expedition (1867-1868)&lt;/field&gt;
      &lt;field name="broader"&gt;Ethiopia -- History -- 1490-1889&lt;/field&gt;
      &lt;field name="broader"&gt;Great Britain -- History -- Victoria, 1837-1901&lt;/field&gt;
      &lt;field name="hiddenLabel"&gt;Expedition to Abyssinia (1867-1868)&lt;/field&gt;
      &lt;field name="hiddenLabel"&gt;British Expedition to Abyssinia (1867-1868)&lt;/field&gt;
      &lt;field name="hiddenLabel"&gt;Magdala Campaign, 1867-1868&lt;/field&gt;
      &lt;field name="hiddenLabel"&gt;Napier Expedition, 1867-1868&lt;/field&gt;
  
  &lt;/doc&gt;
  </code></pre>
  
  <p></p>
  
  <p>I am not getting how to make XSLT of it.</p>