[xquery-talk] Adding content for with distinct-values
Bruno Chatel
bcha at chadocs.net
Thu Dec 9 22:36:29 PST 2004
Hi,
I am looking for a way to do the following (and do not find)..
I have a node set containing something like
<dy:iu-count ID ="n0001000300040011|000100010002" > 1 </ dy:iu-count >
<dy:iu-count ID ="n0001000300040011|000100010002" > 1 </ dy:iu-count >
<dy:iu-count ID ="n00010002001100030002|000100020003" > 1 </ dy:iu-count >
<dy:iu-count ID ="n0001000500040004|000100080004" > 1 </ dy:iu-count >
<dy:iu-count ID ="n0001000500040004|000100080004" > 1 </ dy:iu-count >
<dy:iu-count ID ="n0001000500040004|000100080004" > 1 </ dy:iu-count >
<dy:iu-count ID ="n0001000500040004|000100080004" > 1 </ dy:iu-count >
and i like to return this :
<dy:iu-count ID ="n0001000300040011|000100010002" > 2 </ dy:iu-count >
<dy:iu-count ID ="n00010002001100030002|000100020003" > 1 </ dy:iu-count >
<dy:iu-count ID ="n0001000500040004|000100080004" > 4 </ dy:iu-count >
I suspect using distinct-values and sum but do not succeed.
Thanks in advance for your help
Regards
-- bruno --
Bruno Chatel
Tel : (+33) (0)4 96 11 14 57
bcha at chadocs.com
--------------------------------------
More information about the talk
mailing list