I have a xml file where attributes of a tag is a src for other xml file.
<a>
<b>
<c src="other1.xml" name="other1"></c>
<c src="other2.xml" name="other2"></c>
<c src="other3.xml" name="other3"></c>
</b>
</a>
I want to change content of this xml file into following following format
<a>
<b>
<other1> content of other1.xml </other1>
<other2> content of other2.xml </other2>
<other3> content of other3.xml </other3>
</b>
</a>
I tried using xsl:variable and storing value of src inside it but i am getting error.
Somebody please suggest solution....even hints will be appreciated