title: How to get and convert attributes after tag <product to xml | XSLT
body: <p>output date:</p>
  <pre><code>&lt;products&gt;
  &lt;group&gt;
  &lt;product id=&quot;73&quot; symbol=&quot;LEC-PY1010C&quot; ean=&quot;5901436709251&quot; price_pln=&quot;29.05&quot; price_eur=&quot;6.56&quot; tax=&quot;23.0000&quot; stock=&quot;1215&quot;&gt;
  &lt;name&gt;PY1010C Głośnik samochodowy PY-1010C 4&quot; 60W&lt;/name&gt;
  &lt;description&gt;test&lt;/description&gt;
  &lt;/product&gt;
  &lt;/group&gt;
  &lt;/products&gt;
  </code></pre>
  <p>XSLT <code>1.0</code></p>
  <p>CODE:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;xsl:stylesheet version=&quot;1.0&quot; xmlns:xsl=&quot;http://www.w3.org/1999/XSL/Transform&quot; xmlns:g=&quot;http://base.google.com/ns/1.0&quot;&gt;
  &lt;xsl:output method=&quot;xml&quot; version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; indent=&quot;yes&quot;/&gt;
  &lt;xsl:template match=&quot;products/group&quot;&gt;
  &lt;xsl:element name=&quot;products&quot;&gt;
      
    &lt;xsl:for-each select=&quot;product&quot;&gt;
      &lt;xsl:element name=&quot;product&quot;&gt;
                      
                      &lt;xsl:element name=&quot;name&quot;&gt;
                          &lt;xsl:value-of select=&quot;name&quot;/&gt;
                      &lt;/xsl:element&gt;
                      &lt;xsl:element name=&quot;description&quot;&gt;
                          &lt;xsl:value-of select=&quot;description&quot;/&gt;
                      &lt;/xsl:element&gt;
                  
      &lt;/xsl:element&gt;
    &lt;/xsl:for-each&gt;
    
  &lt;/xsl:element&gt;
  &lt;/xsl:template&gt;
  &lt;/xsl:stylesheet&gt;
  </code></pre>
  <p>result:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;products&gt;
  &lt;product&gt;
  &lt;name&gt;PY1010C Głośnik samochodowy PY-1010C 4&quot; 60W&lt;/name&gt;
  &lt;description&gt;test&lt;/description&gt;
  &lt;/product&gt;
  &lt;/products&gt;
  </code></pre>
  <p>Okay. Can anyone have an idea how to get these elements after the <code>&lt;product</code> tag?</p>
  <p>The expected result some like this:</p>
  <pre><code>&lt;products&gt;
  &lt;product&gt;
  &lt;id&gt;73&lt;/id&gt;
  &lt;symbol&gt;LEC-PY1010C&lt;/symbol&gt;
  &lt;ean&gt;5901436709251&lt;/ean&gt;
  &lt;price&gt;29.05&lt;/price&gt;
  &lt;stock&gt;1215&lt;/stock&gt;
  &lt;name&gt;PY1010C Głośnik samochodowy PY-1010C 4&quot; 60W&lt;/name&gt;
  &lt;description&gt;test&lt;/description&gt;
  &lt;/product&gt;
   &lt;/products&gt;
  </code></pre>
  <p>@update
  The solution works great but we have a small issue.</p>
  <p>output date:</p>
  <pre><code>&lt;product id=&quot;73&quot; symbol=&quot;LEC-PY1010C&quot; ean=&quot;5901436709251&quot; price_pln=&quot;29.05&quot; price_eur=&quot;6.56&quot; tax=&quot;23.0000&quot; stock=&quot;1215&quot;&gt;
  </code></pre>
  <p>Currently via solution from answear we get all this attributes.</p>
  <ol>
  <li><p><code>id=&quot;73&quot;</code> - this attribute will conflict with our site and I do not want to get it.</p>
  </li>
  <li><p><code>symbol=&quot;LEC-PY1010C&quot;</code> - is it possible to add our own code before this code?</p>
  </li>
  </ol>
  <p>example result from above:</p>
  <pre><code>&lt;symbol&gt;CPF-LEC-PY1010C&lt;/symbol&gt;
  &lt;ean&gt;5901436709251&lt;/ean&gt;
  &lt;price_pln&gt;29.05&lt;/price_pln&gt;
  &lt;price_eur&gt;6.56&lt;/price_eur&gt;
  &lt;tax&gt;23.0000&lt;/tax&gt;
  &lt;stock&gt;1215&lt;/stock&gt;
  </code></pre>