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
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"
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
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