Need tag value as attribute value
Hi
I have an XML document that looks something like this:
...
<A>
<A.name>MyName</A.name>
</A>
...
I want the value 'MyName' to appear as a value of an attribute in some other document:
<B:b atr1="MyName">
How can I write the xsl file to handle this transformation? The part where I do the mathing (<xsl:template match="A/A.name">) I believe is ok, but then making it to print "<B:b atr1="MyName">" seems impossible at this moment.
Thank you for any help regarding this issue!
|