This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

how to get tagnames using xsl?


Hi all
I have an XML file and I want to convert into an HTML
file. I want to print some of the XML tag names as the
text of HTML. I am doing this is a for-each loop.

<xsl:for-each select="document/*">
  <-- HERE I WANT TO PRINT THE TAG NAME-->
  <xsl:value-of select="."/>  
</xsl:for-each>

Could anyone help me with this?



__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]