2013-12-04T01:28:38.942159+01:001.0http://jsoniq.org/function-libraryfunction-library This module provides the functions defined by the JSONiq specification,
chapter 8 (Function Library).
JSONiq extends the XQuery specification to also deal with JSON data natively.
Ghislain Fournyhttp://jsoniq.org/JSONiq/Function Libraryjsoniq1.0utf-8http://jsoniq.org/functions This function dynamically builds an object, like the {||} syntax, except that
it does not throw an error upon pair collision. Instead, it accumulates them
into an array, if more than one.
$items A sequence of items, the objects of which are going to be accumulated into a single object.The accumulated object.libjn:accumulatedeclare function libjn:accumulate($items as item()*) as object()itemsitem()object() This function returns all arrays contained at any depth within a sequence of items.
$items A sequence of items.The descendant arrays of the input sequence.libjn:descendant-arraysdeclare function libjn:descendant-arrays($items as item()*) as array()*itemsitem()array()*http://jsoniq.org/function-librarydescendant-arrays-priv Helper function for libjn:descendant-arrays()
$i An itemThe descendant arrays of the itemlibjn:descendant-arrays-privdeclare %private function libjn:descendant-arrays-priv($i as item()) as array()*iitem()array()*http://jsoniq.org/function-librarydescendant-arrays-privhttp://jsoniq.org/function-libraryvalues This function returns all objects contained at any depth within a sequence of items.
$items A sequence of items.The descendant objects of the input sequence.libjn:descendant-objectsdeclare function libjn:descendant-objects($items as item()*) as object()*itemsitem()object()*http://jsoniq.org/function-librarydescendant-objects-priv Helper function for libjn:descendant-objects()
$i An itemThe descendant objects of the itemlibjn:descendant-objects-privdeclare %private function libjn:descendant-objects-priv($i as item()) as object()*iitem()object()*http://jsoniq.org/function-librarydescendant-objects-privhttp://jsoniq.org/function-libraryvalues This function returns all pairs contained at any depth within an sequence of items.
$o An object.All direct and indirect descendant pairs.libjn:descendant-pairsdeclare function libjn:descendant-pairs($items as item()*) as object()*itemsitem()object()*http://jsoniq.org/function-librarydescendant-pairs-priv Helper function for libjn:descendant-pairs()
$i An itemThe descendant pairs of the itemlibjn:descendant-pairs-privdeclare function libjn:descendant-pairs-priv($i as item()) as object()*iitem()object()*http://jsoniq.org/function-librarydescendant-pairs-privhttp://jsoniq.org/functionskeys This function returns the intersection of the objects contained in the
given sequence of items, aggregating values corresponding to the same key
into an array.
$items A sequence of items.The insersection of the objects contained in $items.libjn:intersectdeclare function libjn:intersect($items as item()*) as object()itemsitem()object()http://www.w3.org/2005/xpath-functionsexistshttp://www.w3.org/2005/xpath-functionsheadhttp://www.w3.org/2005/xpath-functionsindex-ofhttp://www.w3.org/2005/xpath-functionskeyshttp://www.w3.org/2005/xpath-functionstail This functions returns all values of all objects contained in a sequence of items.
$items A sequence of items.The values inside the objects of the sequence.libjn:valuesdeclare function libjn:values($items as item()*) as item()*itemsitem()item()*http://jsoniq.org/functionskeys