Mano,
I don't think the concept of a break is something that fits into XQuery's
declarative programming paradigm. In particular, if I recall correctly, the
return expression (R in FLOWR) may never be omitted or skipped. If you want to
return, say, an empty sequence if a particular condition is true, then you
could put an if/else expression inside the return expression. For a rather
simplistic example:
for $foo in $sequence
return
if ($foo/@bar eq 'special_value') then ()
else
$foo/baz
I'm sure someone else will correct me if I'm wrong about this, but I'm quite
certain there is no "break" construct. If you could give a description of what
in particular you are trying to do, I'm sure you would get a very quick
solution.
Hope this helps,
Doug Glidden
Software Engineer
The Boeing Company
[email protected]
_____
From: [email protected]
[mailto:[email protected]] On Behalf Of mano m
Sent: Tuesday, March 30, 2010 09:27
To: [email protected]
Subject: [MarkLogic Dev General] Break statement in FLWOR
Hi
How to break/exit a FLWOR statement in Marklogic?
Regards,
Mano
_____
Your Mail works best with the New Yahoo Optimized IE8. Get it
NOW!<http://in.rd.yahoo.com/tagline_ie8_new/*http://downloads.yahoo.com/in/internetexplorer/>.
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general