Last active
January 3, 2016 20:49
-
-
Save mjlassila/8517208 to your computer and use it in GitHub Desktop.
For testing single file revisioning in the server.
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
module namespace testaus= "http://testausta.coj/"; | |
import module namespace functx = "http://www.functx.com" at "functx-1.0-nodoc-2007-01.xqm"; | |
(: URL routing :) | |
declare | |
%restxq:GET | |
%restxq:path("testaus") | |
%restxq:produces("application/xml") | |
%output:method("xml") | |
function testaus:response() | |
{ | |
let $resp:=<foo> | |
<bar>baz</bar> | |
<baz>bar</baz> | |
</foo> | |
return $resp | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment