[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Selecting First Node

Subject: Selecting First Node
From: "Scott Carlson" <Scott.Carlson@xxxxxxxxxxxxxxx>
Date: Tue, 20 Mar 2001 10:23:48 -0600
xsl for each first node
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.