I have a XML document and I want to rename some elements via XSLT:
<Assert @some attributes here>
<conent>
<And>
<formula>
<Atom>
<opr>
...
For example I want to rename <opr>
to <op>
. I have the following XSLT:
<xsl:template match="@* | node()">
<xsl:copy>
<xsl:apply-templates select="@* | node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="opr">
<op>
<xsl:apply-templates select="@*|node()"/>
</op>
</xsl:template>
When I debug the XSLT it just doesnt go inside the "opr" template, it gets matched by the first template. The generatd output is the same as the input. Can any one help me on this?
Thanks