Add JSONiq support

This commit is contained in:
William Candillon
2014-04-21 21:58:41 +02:00
parent 0c6f4383a7
commit a949338a91
3 changed files with 32 additions and 0 deletions

9
samples/JSONiq/detail.jq Normal file
View File

@@ -0,0 +1,9 @@
(: Query for returning one database entry :)
import module namespace req = "http://www.28msec.com/modules/http-request";
import module namespace catalog = "http://guide.com/catalog";
variable $id := (req:param-values("id"), "London")[1];
variable $part := (req:param-values("part"), "main")[1];
catalog:get-data-by-key($id, $part)