XQuery Function Documentation

Search and Browse

demo:addresses

demo:addresses() as item()*

List all addresses and return them as XML.

Returns:
item()*

demo:create-or-edit-address

demo:create-or-edit-address($content as node()*) as item()*

Update an existing address or store a new one. The address XML is read from the request body.

Parameters:
$content* $content*
Returns:
item()*

demo:delete-address

demo:delete-address($id as xs:string*) as item()*

Delete an address identified by its uuid.

Parameters:
$id* $id*
Returns:
item()*

demo:get-address

demo:get-address($id as xs:string*) as item()*

Retrieve an address identified by uuid.

Parameters:
$id* $id*
Returns:
item()*

demo:search-addresses

demo:search-addresses($query as xs:string*, $field as xs:string*) as item()*

Search addresses using a given field and a (lucene) query string.

Parameters:
$query* $query*
$field* $field*
Returns:
item()*