[Home] [By Thread] [By Date] [Recent Entries]
Mark Anderson wrote:
Hi AllThe problem is usually in the '=' operator (thinking positive): in XLST, if one item in the left side sequence and one item in the right side sequence equal, the whole expression returns true. The trick is to reverse it: with the '!=' (think negative: think what you don't want and then reverse it), which means: if one item on the left side is sequence is unequal to any item in the right side sequence, the whole expression returns false: (: returns false precisely when you want true() to return :) group/person/sex !=group/person/sex (: reverse the result :) not(group/person/sex !=group/person/sex) and *and* it together with the rest: (: full expression :) not(group/person/sex !=group/person/sex) and not(group/person/age !=group/person/age) Cheers, -- Abel Braaksma
|

Cart



