Re: [MarkLogic Dev General] xdmp:value query

2015-06-16 Thread Florent Georges
d in at line number 1 > > > Thanks > Pragya > > > From: general-boun...@developer.marklogic.com > on behalf of Florent Georges > > Sent: Tuesday, June 16, 2015 3:02 PM > To: MarkLogic Developer Discussion > Subject:

Re: [MarkLogic Dev General] xdmp:value query

2015-06-16 Thread David Lee
al-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Florent Georges Sent: Tuesday, June 16, 2015 5:33 AM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] xdmp:value query Hi, I haven't looked in detail (especially whet

Re: [MarkLogic Dev General] xdmp:value query

2015-06-16 Thread Kapoor, Pragya
From: general-boun...@developer.marklogic.com on behalf of Florent Georges Sent: Tuesday, June 16, 2015 3:02 PM To: MarkLogic Developer Discussion Subject: Re: [MarkLogic Dev General] xdmp:value query Hi, I haven't looked in detail (especially whether it

Re: [MarkLogic Dev General] xdmp:value query

2015-06-16 Thread Florent Georges
Hi, I haven't looked in detail (especially whether it is a good idea in this case to use dynamic evaluation of XQuery, or if you should rather use something else), but it looks like you want to evaluate the expression, not resolve a variable name. Evaluating the string literal "$exp" gives

[MarkLogic Dev General] xdmp:value query

2015-06-16 Thread Kapoor, Pragya
Hi, I am running the below query : declare namespace MET100 = 'MET100' ; let $output := test154C76A855C23EF8AC5AFBC59C8D4C40A CollectionNo CollectionNo*3 let $functions := fn:data($output//functions) let $docId := '/docs/BONY_049_ISDA-CSA-GB95_6749.xml' let $type := ($output//f