Aug 6, 2004 #1 vladibo Programmer Joined Sep 14, 2003 Messages 161 Location CA XSLT - How to print the name of the current tag? I have <xsl:for-each select="*"> <th> ??? </th> </xsl:for-each> and I want to print the name of the tag. So if I have <A></A> <B></B> <C></C> To have as output <th> A </th> <th> B </th> <th> C </th> Thank you
XSLT - How to print the name of the current tag? I have <xsl:for-each select="*"> <th> ??? </th> </xsl:for-each> and I want to print the name of the tag. So if I have <A></A> <B></B> <C></C> To have as output <th> A </th> <th> B </th> <th> C </th> Thank you
Aug 6, 2004 #2 jaybytez Programmer Joined Jan 8, 2003 Messages 65 Location US you can use the name() function: http://www.w3schools.com/xpath/xpath_functions.asp -jay Upvote 0 Downvote