Can I use XPath in "value-of select" statement?

wxdqz

New Member
Hey guys! Thanx for reading this!Can I do something like this?<xsl:template match="/"><xsl:apply-templates select="/*"/></xsl:template><xsl:template match="/"><table width="100%" border="4" cellspacing="0"><tr bgcolor="darkRed"><xsl:for-each select="."><td align="center" class="header"><xsl:value-of select=".[.!nodeName()]" /></td></xsl:for-each></tr>This doesnt print out anything! Im just trying to get my XML file's nodenames listed across the top as headers in a tables (like, id, firstname,lastname, et). Heres my XML file...<XML id='Data'><Addresses><Address><id>12345</id><FirstName>Jason C.</FirstName><LastName>Cannelos</LastName><State>WA</State></Address><Address><id>12346</id><FirstName>Hollie Jean</FirstName><LastName>Orcutt</LastName><State>WA</State></Address></Addresses></XML>Help! Thanx!Json
 
Back
Top