Changes

Jump to navigation Jump to search
522 bytes removed ,  23:33, 21 August 2012
no edit summary
=Conventions=
All functions in this module are assigned to the {{Code|http://exquery.org/ns/restxq/Requestrequest}} namespace, which must be dynamically imported. In this documentation, the namespace is bound to the {{Code|request}} prefix is used. Next, the first argument of all functions must be a servlet request container, bound via the <code>[[RESTXQ#Context|%restxq:request(...)]]</code> annotation. An example: <pre class='brush:xquery'>module namespace test = 'http://basex.org/examples/test'; import module namespace request = "http://exquery.org/ns/restxq/Request"; declare %restxq:GET %restxq:path("...") %restxq:request("{$request}") function test:function($request){ ...};</pre>
=Functions=
|-
| width='90' | '''Signatures'''
|{{Func|request:attribute|$request as basex:request, $key as xs:string|xs:string?}}
|-
| '''Summary'''
|-
| width='90' | '''Signatures'''
|{{Func|request:update-attribute|$request as basex:request, $key as xs:string, $value as xs:string|empty-sequence()}}
|-
| '''Summary'''
|-
| width='90' | '''Signatures'''
|{{Func|request:path|$request as basex:request|xs:string}}
|-
| '''Summary'''
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu