On 8/11/06, Andrei Matei <AndreiMatei(_at_)cimec(_dot_)ro> wrote:
Hello all,
I want to ask you if I can do something with xpath. I have an xml that
looks like this:
<a>
<b>
content 1
</b>
<b>
content 2
</b
..
</a>
I want an xpath expression that would tell me if all the contents of the b
nodes are the same. For the example above this wouldn't happen, because
"content 1" != "content 2". It doesn't matter what the expression would
output (the first b would be great). Is this possible with xpath?
If your content is exactly like that then you can just do:
<xsl:if test="b[1] = b[2]"> the contents match</xsl:if>
cheers
andrew
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--