This will give you the current element name (tag name)
<xsl:value-of select ="name(.)"/>
OP-Edit: This will also do the trick:
<xsl:value-of select ="local-name()"/>
More Related Contents:
- Current node vs. Context node in XSLT/XPath?
- XPath select all elements between two specific elements
- XSLT: How to convert XML Node to String
- XPath with multiple conditions
- How do you output the current element path in XSLT?
- Finding the difference between two dateTimes in XSLT
- XSLT Replace function not found
- What is the difference between ‘or’ and ‘|’ when programming in xslt?
- Concatenate multiple node values in xpath
- WiX Installer: using xslt with heat.exe to update attributes
- How do I generate a comma-separated list with XSLT/XPath?
- XSLT – How to keep only wanted elements from XML
- XSLT – Comparing preceding-sibling’s elements with current’s node element
- XPath query to get nth instance of an element
- Case insensitive XPath contains() possible?
- Getting attribute using XPath
- Can Chrome be made to perform an XSL transform on a local file?
- Xml Namespace breaking my xpath!
- XPath to select multiple tags
- How can I use XPath to find the minimum value of an attribute in a set of elements?
- In XSLT how do I increment a global variable from a different scope?
- How to find the max attribute from an XML document using Xpath 1.0
- Get nodes where child node contains an attribute
- How do you identify duplicate values in a numerical sequence using XPath 2.0?
- Using XPath, How do I select a node based on its text content and value of an attribute?
- XPath to return only elements containing the text, and not its parents
- distinct in Xpath?
- How can I select an element with multiple classes with Xpath?
- XSLT: Select following-sibling until reaching a specified tag
- Is it possible to apply normalize-space to all nodes XPath expression finds?