I think this will work.
<xsl:for-each select="Row/Columns[1]/C"> <!--Column Titles-->
<td><xsl:value-of select="@Title"/></td>
</xsl:for-each>
This would mean that you want only the C nodes, that are children
of the Columns node whose position is 1.
Scott
-----------------------------------
Date: Tue, 20 Mar 2001 10:00:28 +0200
From: "Koray Berk" <berkk@xxxxxxxxxx>
Subject: Selecting First Node
I want to obtain column titles then write the column values.
<table border="4" cellpadding="4">
<tr>
<xsl:for-each select="Row/Columns/C"> <!--Column Titles-->
<td><xsl:value-of select="@Title"/></td>
</xsl:for-each>
</tr>
<tr>
<xsl:for-each select="Row/Columns/C"><!--Column Values-->
<td><xsl:value-of select="@Value"/></td>
</xsl:for-each>
</tr>
</table>
But of course, this repeats the column titles. How can I make the first
for-each run only once for one Row?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
- Selecting First Node
- Koray Berk - Tue, 20 Mar 2001 03:00:19 -0500 (EST)
- Pranam Ben - Tue, 20 Mar 2001 06:24:06 -0500 (EST)
- <Possible follow-ups>
- Scott Carlson - Tue, 20 Mar 2001 11:21:49 -0500 (EST) <=
|
|