[MarkLogic Dev General] sequence of elements

mano m mano07good at yahoo.co.in
Tue Sep 7 02:33:13 PDT 2010


Hi Florent,

I got the solution by combining all your suggestions i.e. Self:: and Local name 
comparison

<x>{$item/self::*[local-name(.) eq "ID"]}</x>
 
Thanks for you help

Regards,
Mano




________________________________
From: Florent Georges <lists at fgeorges.org>
To: General Mark Logic Developer Discussion <general at developer.marklogic.com>; 
mano m <mano07good at yahoo.co.in>
Sent: Mon, 6 September, 2010 9:57:17 PM
Subject: Re: [MarkLogic Dev General] sequence of elements

mano m wrote:

> I tried your first option in different combination.

  $item[self::ID] is definitely the one you are looking for if
you do not use the default namespace.  Personally I never use the
default namespace declaration, because I think it is more
confusing in corner cases than it is useful in other cases.

  Regards,

-- 
Florent Georges
http://fgeorges.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20100907/cba82948/attachment.html 


More information about the General mailing list