loop through xslt when we havemultiple elements
<p>I want to loop through an XML and create records if there are multiple items repeated like below. I should add 4 new record for child in a table for each master like a 123, b 123 etc. My output should be like below</p>

<pre><code>a|123
b|123
c|123
d|123

&lt;item&gt;
&lt;master&gt;123&lt;/master&gt;
&lt;child1&gt;a&lt;/child1&gt;
&lt;child2&gt;b&lt;/child2&gt;
&lt;child3&gt;c&lt;/child3&gt;
&lt;child4&gt;d&lt;/child4&gt;
&lt;/item&gt;
</code></pre>

<p>I have tried below code </p>

<pre><code>         &lt;xsl:for-each select="//item"&gt;                
            &lt;Row Action="ADD"&gt;
              &lt;xsl:value-of select="current()/child1" /&gt;|&lt;xsl:value-of  select="current()/master" /&gt;
            &lt;/Row&gt;
            &lt;/xsl:if&gt;
          &lt;/xsl:for-each&gt;  
</code></pre>