RE: [xsl] XML to HTML... dynamic table headers from element names

Subject: RE: [xsl] XML to HTML... dynamic table headers from element names
From: "Alan K. Gay" <alan@xxxxxxxxxxxx>
Date: Thu, 31 Oct 2002 12:35:13 -0500
You are my hero... thanks for the help.  I now have two xslt books on my
nightstand for bedtime reading.

-----Original Message-----
From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Adam Griffin
Sent: Thursday, October 31, 2002 8:02 AM
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx'
Subject: RE: [xsl] XML to HTML... dynamic table headers from element
names

Happy to help when I can.  Similar thing again, just make small change
so
that its for all rows, for all data.


<tr>
<xsl:for-each select="Table[1]/*">
	<td><xsl:value-of select="local-name()"/></td>
</xsl:for-each>
</tr>
<xsl:for-each select="Table">
	<tr>
		<xsl:for-each select="*">
			<td><xsl:value-of select="." /></td>
		</xsl:for-each>
	</tr>
</xsl:for-each>




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


Current Thread