Subject: RE: how to do in xsl equalen of SQL not in (......)
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 5 Sep 2003 19:41:22 +0100
|
> hi all.
>
> How can I in xsl realise when I what count
> all value with code not in some list
>
> <x code="2">2</x>
> <x code="3">2</x>
> <x code="4">2</x>
> <x code="5">2</x>
> <x code="6">2</x>
>
> how to do ->>> sum(x[code not in(1,2)]) ???
In XPath 2.0:
sum(x[not(@code=(1,2))])
In XPath 1.0
sum(x) - sum(x[@code=1 or @code=2])
Michael Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|