You are prefixing the root node with 'preceding-sibling'. That won't work because the node you are trying to compare is d:deficiencyVeh.
Try something like:
count(../../dfs:dataFields/d:comSystemList/d:radioVeh/d:deficencyVeh[not(@defVehRad = preceding-sibling::d:deficencyVeh/@defVehRad)])

Signature
Greg Collins [InfoPath MVP]
Visit Brain Trove ( http://www.BrainTrove.com )
Visit InfoPath Dev ( http://www.InfoPathDev.com )
Shaun - 06 May 2006 00:31 GMT
wow, thanks!
I'm making a lot more progress after about a week of learning. I keep
wanting to throw sql statements at the thing until I realize it's just a
different way of looking at the problem.
Shaun
> You are prefixing the root node with 'preceding-sibling'. That won't work because the node you are trying to compare is d:deficiencyVeh.
>
> Try something like:
>
> count(../../dfs:dataFields/d:comSystemList/d:radioVeh/d:deficencyVeh[not(@defVehRad = preceding-sibling::d:deficencyVeh/@defVehRad)])