RE: [MarkLogic Dev General] question regarding a code snippet..

2009-11-11 Thread Glidden, Douglass A
boeing.com -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Jason Hunter Sent: Wednesday, November 11, 2009 12:09 To: General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] question regarding a co

Re: [MarkLogic Dev General] question regarding a code snippet..

2009-11-11 Thread Jason Hunter
You just need to add a "return" before the "if", to make it into a legal FLWOR statement. -jh- On Nov 11, 2009, at 12:18 PM, Srinivas Mandadapu wrote: Thanks for the reply. It worked like a charm. On the same note I have another question in Xquery in below snippet: xquery version "1.0-ml"

Re: [MarkLogic Dev General] question regarding a code snippet..

2009-11-11 Thread Srinivas Mandadapu
Thanks for the reply. It worked like a charm. On the same note I have another question in Xquery in below snippet: xquery version "1.0-ml"; import module namespace thsr="http://marklogic.com/xdmp/thesaurus" at "/MarkLogic/thesaurus.xqy"; extractSynonyms("drugs") declare function extractSynon

RE: [MarkLogic Dev General] question regarding a code snippet..

2009-11-10 Thread Rix, Brad
A couple of things here, You need to query for you elements in the thesaurus namespace. declare namespace thesaurus = "http://marklogic.com/xdmp/thesaurus";; You also are already at the "entry" element when you defined the variable $synEntry. Note, the query is now fn:count($synEntry/thesauru