I cannot use the xpath anywhere, because the element will be selected 
randomly....
depending upon the selected root element within which the multiple occurence of 
desired will be found out...

thanks for your response....



--- On Wed, 1/4/09, Vyacheslav Sedov <[email protected]> wrote:

From: Vyacheslav Sedov <[email protected]>
Subject: Re: [MarkLogic Dev General] XQuery help to COUNT multiple node
To: "General Mark Logic Developer Discussion" <[email protected]>
Date: Wednesday, 1 April, 2009, 5:01 PM

try $n/zz[3] instead count(..)

With best wishes,
Slav

On Wed, Apr 1, 2009 at 3:05 PM, deepak mohan <[email protected]> wrote:
> Hi Friends,
>
>     I want to select the node which has the a desired node(<zz>) exists more
> than 2.
>
> The xml structure goes like this:
> <AA>
>     <BB>
>           <zz></zz>
>           <zz></zz>
>           <zz></zz>
>     </BB>
>     <BB>
>           <zz></zz>
>      </BB>
> </AA>
>
> My expected results should be <BB>...</BB>.. (in this case...)
>
> I tried with,
> for $n in //AA/BB
> where count($n/zz) > 2
> return $n
>
> But the element will be chosen dynamically...
> Solution using implicit function (cts:...) will be more helpful and much
> appreciated.... :)
>
> thanks,
> Deepak M.
>
> ________________________________
> Download prohibited? No problem. CHAT from any browser, without download.
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general



      From Chandigarh to Chennai - find friends all over India. Go to 
http://in.promos.yahoo.com/groups/citygroups/
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to