[xquery-talk] FLOR or FLWOR
mike at saxonica.com
Wed Sep 10 12:01:15 PDT 2008
There are some cases where using a predicate may be inconvenient, but it is
always possible. This query is equivalent to
distinct-values($values)[let $v := . return count($values[. = $v] > 2]
or if you prefer (or if you are restricted to XPath 2.0 syntax)
From: talk-bounces at x-query.com [mailto:talk-bounces at x-query.com] On Behalf
Of Rémi Dewitte
Sent: 10 September 2008 10:35
To: timothymarc at freenet.de
Cc: Robert Koberg; talk at x-query.com
Subject: Re: [xquery-talk] FLOR or FLWOR
I do have an example. Correct ?
for $v in distinct-values($values) where count($values[. = $v]) > 2 return
On Wed, Sep 10, 2008 at 11:02 AM, <timothymarc at freenet.de> wrote:
i have had a situation in where the XPath predicate selection does not fit
my requirements. I think it was something concerning a query, that combines
to sequences, but i'm not sure. It is a long time ago and i can't find the
But the where is essential in some case. But you're right, most of the
selections can be done with XPath.
----- original Nachricht --------
Betreff: [xquery-talk] FLOR or FLWOR
Gesendet: Mi 10 Sep 2008 03:02:44 CEST
Von: "Robert Koberg"<rob at koberg.com>
> Where would you use 'where' that couldn't be handled by XPath? In
> other words, why is there a where?
> talk at x-query.com
--- original Nachricht Ende ----
talk at x-query.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the talk