M
Moonbeam66
I'm looking to convert an element name to an attribute name, where the
element name is user-defined. For example
<accountNumber>12345678</accountNumber>. I want to convert this to
<userTag name="accountNumber">12345678</userTag>. Where I'm having
probs is getting the element name to appear as the value for the
attribute in the transformed XML. Any ideas?
If I use the following XSL
<xsl:attribute name="name">
name()
</xsl:attribute>
I get the following result:
<userTag name="name()"> .. </userTag>
I get the same sort of result if I just use "." instead of "name()".
Thanks
element name is user-defined. For example
<accountNumber>12345678</accountNumber>. I want to convert this to
<userTag name="accountNumber">12345678</userTag>. Where I'm having
probs is getting the element name to appear as the value for the
attribute in the transformed XML. Any ideas?
If I use the following XSL
<xsl:attribute name="name">
name()
</xsl:attribute>
I get the following result:
<userTag name="name()"> .. </userTag>
I get the same sort of result if I just use "." instead of "name()".
Thanks