Page MenuHomec4science

api-odd.xql
No OneTemporary

File Metadata

Created
Fri, Jan 3, 14:46

api-odd.xql

xquery version "3.1";
declare namespace api="https://tei-publisher.com/xquery/api";
declare namespace output="http://www.w3.org/2010/xslt-xquery-serialization";
declare namespace tei="http://www.tei-c.org/ns/1.0";
import module namespace router="http://e-editiones.org/roaster";
import module namespace rutil="http://e-editiones.org/roaster/util";
import module namespace oapi="http://teipublisher.com/api/odd" at "api/odd.xql";
let $lookup := function($name as xs:string) {
try {
function-lookup(xs:QName($name), 1)
} catch * {
()
}
}
let $resp := router:route("modules/lib/api.json", $lookup)
return
$resp

Event Timeline