Need tag value as attribute value
I have an XML document that looks something like this:
I want the value 'MyName' to appear as a value of an attribute in some other document:
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!