-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #349 from Edirom/ftr/xquery-style-conformant
Unify XQuery and XQuery modules format and indentation
- Loading branch information
Showing
55 changed files
with
4,258 additions
and
3,750 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,22 @@ | ||
xquery version "3.0"; | ||
xquery version "3.1"; | ||
|
||
declare namespace html="http://www.w3.org/1999/xhtml"; | ||
declare namespace h="http://exist-db.org/xquery/httpclient"; | ||
(: | ||
: Copyright: For LICENSE-Details please refer to the LICENSE file in the root directory of this repository. | ||
:) | ||
|
||
let $sessionId := request:get-parameter('sessionId', '') | ||
(: IMPORTS ================================================================= :) | ||
|
||
import module namespace httpclient = "http://exist-db.org/xquery/httpclient"; | ||
|
||
(: NAMESPACE DECLARATIONS ================================================== :) | ||
|
||
let $test := httpclient:head(xs:anyURI('http://textgridlab.org/1.0/tgcrud/rest/textgrid:208dw/data?sessionId=' || $sessionId), | ||
false(), ()) | ||
declare namespace html = "http://www.w3.org/1999/xhtml"; | ||
|
||
(: QUERY BODY ============================================================== :) | ||
|
||
let $sessionId := request:get-parameter('sessionId', '') | ||
let $test := httpclient:head(xs:anyURI('http://textgridlab.org/1.0/tgcrud/rest/textgrid:208dw/data?sessionId=' || $sessionId), false(), ()) | ||
let $status := $test/root()/httpclient:response/string(@statusCode) | ||
let $status := response:set-status-code(xs:int($status)) | ||
|
||
return | ||
$status | ||
$status |
Oops, something went wrong.