how do i do an xsl:for-each select="node/node[whatever$eq$'soandso']" but where it is NOT EQUAL to that value rather than equal to that value...
!=(not equals) with node set is
true if there isa pair of nodes, one from each node set that have a different string values
note that this means that if either or both node sets are emppty the result is always false
it also means that if either node set contains more than one node, then unless the nodes have the string value the result will always be true.
(xslt fragment)
<xsl:variable name="all-names" select="//first">
now a test
<xsl: if test="$all-names = 'Jen'">
the result would be false, because the node set $all-names contain 4 name nodes and none has the string value of Jen.
The first <name> element has the string value of JenSmith --the second has JennySmith so on etc. The fact that one of them has a child whoose string value is Jen is of no consequence: the CHILD is not a member of the node set.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.