I have two XSDs. The sample XML for these two XSDs are as follows
**XML -1** **XML -2**
<root> <parent>
<e1 /> <a1 />
<e2 /> <a2 />
. .
. .
. .
<e600 /> <a600/>
</root> </parent>
I need to write an XSLT for data transformation. The value of element "e(i)" needs to be mapped to "a(i)"
Now I can write an XSLT like below
<parent>
<a1>
<xsl:value-of select = "/root/e1/text()"/>
</a1>
<a2>
<xsl:value-of select = "/root/e2/text()"/>
</a2>
.
.
<a600>
<xsl:value-of select = "/root/e600/text()"/>
</a600>
</parent>
But this way it is very tedious. Anyone can help or suggest whether to write an XSLT for this purpose in a small way within one template using XSLT 1.0.