Hi mrame,
Thanks for your help. I changed the code and I am getting the namespace in the osa:name element, but it is not the namespace we have mentioned in the template. I am getting another namespace which is declared for the
xmlns:osa=http://www.comanyname.com/xmlschema/resource/metadata
/osa/infrastructure/v001.
I need to have the namespace "
http://complextypes.app.esb.bac.com" for osa:*.
Sorry for bugging you again.Pls help.
Code:
<xsl:template match="osa:*">
<xsl:element name="{name()}" namespace="http://complextypes.app.esb.bac.com">
<xsl:apply-templates select="@* | node()" mode="osa"/>
</xsl:element>
</xsl:template>
<xsl:template match="osa:*" mode="osa">
<xsl:element name="{name()}">
<xsl:apply-templates select="@* | node()"/>
</xsl:element>
</xsl:template>