i'm moving from one namespace to another in a XML and i have been facing problems with xsi:type attributes for typed elements. I have been using next template that easily moves element that have one namespace to other one.
<xsl:template match="ent:*" >
<xsl:element name="ent:{local-name()}"
namespace="http://ns3">
<xsl:copy-of select="@*" />
<xsl:apply-templates />
</xsl:element>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
but i'm not able to update attribute values that belongs to a given name space as xsi:type attribute.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ser:getAsByIdResponse xmlns:ser="http://osde.com.ar/services">
<return xmlns:xsi=".." xmlns:ns3New="http://ns3" xmlns:ns1New="http://ns2" xsi:type="nsold:aType"/>
</ser:getAsByIdResponse>
</soap:Body/>
</soap:Envelope>
In above example, i can't change "nsold:atype" to one like "ns3New:atype" that uses the new name spaces. Is there any way to do adjust this kind of values?