Skip to content

Instantly share code, notes, and snippets.

@wcandillon
Created September 30, 2011 09:54
Show Gist options
  • Save wcandillon/1253309 to your computer and use it in GitHub Desktop.
Save wcandillon/1253309 to your computer and use it in GitHub Desktop.
(: The "no-probe-2" query :)
import module namespace xqddf = "http://www.zorba-xquery.com/modules/xqddf";
import module namespace news-data = "http://www.news.org/data" at "news_data.xqlib";
for $emp in xqddf:collection($news-data:employees)/employee[./position/@kind eq "journalist"]
where 100 <= count(for $art in xqddf:collection(xs:QName("news-data:articles"))//article
where $art/empid eq $emp/id
return $art)
return $emp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment