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

Selecting a node set

Subject: Selecting a node set
From: Tony Click <Tony.Click@xxxxxxxxx>
Date: Fri, 27 Jul 2001 09:56:34 -0400
xsl selecting a node
I think the answer is before me, but I need more eyes to look at this and
help me with the solution.

My problem is I need to identify a current node based on the subsequent
node.  The following code gives me a true for each node that I want to keep
and a false for the ones I don't want.  Unfortunatly, I need it in the form
of a select.

	<xsl:for-each select="endTime">
		<xsl:value-of select="count(
following-sibling::endTime[1]/interval[@channelDetailId =
current()/interval/@channelDetailId] ) != count( current()/interval ) "> 
	</xsl:for-each>

As soon as I try something like:

	<xsl:value-of select="endTime[ count(
following-sibling::endTime[1]/interval[@channelDetailId =
current()/interval/@channelDetailId] ) != count( current()/interval ) ]"/>

That of course doesn't work ( I believe that is beacuse current() doesn't
actually behave the same as it does in the for loop).  

Any ideas?

TIA 

-Tony


 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.