Hi guys,
I'm pretty new to XSLT so please bare with me. I'm trying to output an XML trough XSLT to a new XML. The output XML has the same structure etc. as the source XML. However, within the transformation I filter out some stuff. I do not know what tags are being used in the source XML. I only know the structure which to filter. So, I would use something like this template the recursively go trough the source and output it as it was:
Code:
<xsl:template match="*">
<xsl:element name="???">
<xsl:apply-templates />
</xsl:element>
</xsl:template>
The problem is that I need to original name of the node currently being processed for the 'name' attribute of the <xsl:element> tag. How do I get this name (and the attributes as well). Basically a 1:1 copy.
Thanks!