attribute list

Subject: attribute list
From: "Paul Beer" <>
Date: Mon, 31 Jan 2000 14:18:50 -0500
I am trying to loop through the child elements of an element using xslt and
use the elemnt names of the child nodes as column headers for an html table.

the xml packet looks like this

      <COMPANY>Aero Atlanta Fl</COMPANY>
      <NAME>Aero Atlanta Flying Club</NAME>
      <STREET>P.O. Box 819</STREET>

what i want to do is dynamically display the child elements as headers in an
html table, like this :


this doesnt work:
	<TABLE cellpadding="3" border="2">
    	<xsl:for-each select="CUSTOMERS">
	   <TD><xsl:value-of select="@name"/></TD>

I cant figure out how to get at the value of a child element name from
within a recursive loop .....
any suggestions ?


 XSL-List info and archive:

Current Thread