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

RE: self::node()[not(.=following::node())]

Subject: RE: self::node()[not(.=following::node())]
From: "Andy J. Cupp" <acupp@xxxxxxxxxxxxxxx>
Date: Thu, 16 Jan 2003 12:03:38 -0600
self node
I think this might be what you want, but I'm not sure.  In your description you say you want the nodes that are the same as the next one, but in your xpath you have the function 'not()'.  Anyway, it is, and you need to test it further:

<xsl:value-of select="self::node()[self::node()=following::node()[1]]"/>

The index '[1]' says to only look at only the following node alone, not at all the others.

Here's a tool that my help you further:
http://www.vbxml.com/xpathvisualizer/default.asp

Hope I was some help,
Andy

-----Original Message-----

For some how, this stops working for me. What I want is just to print out 
the value which when it's the same as the next one.

<xsl:value-of select="self::node()[not(.=following::node())]"

The stylesheet just cannot give the value for this syntax.

Do you have any idea where I'm doing wrong or is there any alternative?


 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.