Hi All,
I have a stylesheet with a identity transformation template and an element specific template. However, when I ran the below stlyesheet over a xml file, only identity transformation is invoked. My element specific template isn't.
There is a target namespace for the schema that defines the elements. I have specified in the stylesheet using xmlns attribute as below.
Can you please help.
Regards
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://mynamespace">
<xsl:output method="xml" encoding="utf-8"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()" />
</xsl:copy>
</xsl:template>
<xsl:template match="XYZ">
....
....
</xsl:template>
</xsl:stylesheet>