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

selecting similar nodes

Subject: selecting similar nodes
From: "Sargeant, Richard (GEIS)" <Richard.Sargeant@xxxxxxxxxxx>
Date: Wed, 1 Sep 1999 13:08:03 +0200
xml similar nodes
Hi,

   I trying to select any following nodes with the same DESCR node but I
can't quite get it right.

for example my XML file looks like -

	<ITEM>
	 	<DESCR>aaaaa</DESCR>
		<NUM>1001</NUM>
	</ITEM>
	<ITEM>
	 	<DESCR>aaaaa</DESCR>
		<NUM>1002</NUM>
	</ITEM>
	<ITEM>
	 	<DESCR>aaaaa</DESCR>
		<NUM>1003</NUM>
	</ITEM>
	<ITEM>
	 	<DESCR>xxxxx</DESCR>
		<NUM>1004</NUM>
	</ITEM>

If my current node is 1001,  I want to be able to process 1002, and 1003 at
the same time. So I thought the following would work...

	<xsl:for-each select="from-following(DESCR[text()=text()])">
		<xsl:call-template name="Details"/>
	</xsl:for-each>

What am I doing wrong ?

regards ... Richard



 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.