xsl-list
[Top] [All Lists]

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

2003-01-16 11:03:38
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



<Prev in Thread] Current Thread [Next in Thread>
  • RE: self::node()[not(.=following::node())], Andy J. Cupp <=