I'm looking for XLST to edit an xml file. As explained in the title, I would like to rename my items with the name of their "name" attribute.
My xml file :
<doe name="titi">
<bob name="toto">blabla</bob>
<bob name="tutu">blabla </bob>
</doe>
The output xml file that I would like:
<titi>
<toto>blabla</toto>
<tutu>blabla </tutu>
</titi>
I tried several things but I was sent back an "attribute" name "hab a bad value"
<xsl:element name="@bob">
<xsl:value-of select="$bob" />
</xsl:element>
or
<xsl:element name="/doe/@bob">
<xsl:value-of select="$bob" />
</xsl:element>