Skip to content

Instantly share code, notes, and snippets.

@evanlenz
Created October 5, 2012 22:25
Show Gist options
  • Save evanlenz/3842818 to your computer and use it in GitHub Desktop.
Save evanlenz/3842818 to your computer and use it in GitHub Desktop.
<widget xmlns="http://example.com/widgets">
<part count="30">
<name>Thingamajig</name>
</part>
</widget>
declare namespace wg = "http://example.com/widgets";
cts:values(cts:path-reference("/wg:widget/wg:part/@count"))
cts:search(collection(), cts:path-range-query("/wg:widget/wg:part/@count",">",20))
/wg:widget/wg:part[@count gt 20]
declare namespace wg = "http://example.com/widgets";
xdmp:query-trace(true()),
/wg:widget/wg:part[@count gt 20]
Comparison contributed int range value constraint: /w:widget/w:part/@count > 20
...
Executing search.
Selected 1 fragment to filter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment