I have for example the XSL code:
<xsl:for-each select="//*">
<xsl:for-each select="imagem">
<img>
<xsl:attribute name="src">
<xsl:value-of select="."/>
</xsl:attribute>
</img>
</xsl:for-each>
</xsl:for-each>
I have for example following xml code:
<?xml version="1.0" ?>
<imagens>
<imagem>
<png id="1">img1.png</png>
<png id="2">img2.png</png>
<png id="3">img3.png</png>
<png id="4">img4.png</png>
<png id="5">img5.png</png>
</imagem>
<imagem>
<png id="1">img6.png</png>
<png id="2">img7.png</png>
<png id="3">img8.png</png>
<png id="4">img9.png</png>
<png id="5">img10.png</png>
</imagem>
I'm trying to make this code turn into something like this:
<img src="img1.png"><img src="img2.png"><!--E assim por diante-->
But it looks like this:
<img src="img1.pngimg2.pngimg3.pngimg4.pngimg5.png">
Does anyone have any idea how to solve it?