Mercurial > hg > mpdl-group
diff software/eXist/webapp/mpdl/escidoc/controller.xql @ 7:5589d865af7a
Erstellung XQL/XSL Applikation
author | Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 08 Feb 2011 15:16:46 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/software/eXist/webapp/mpdl/escidoc/controller.xql Tue Feb 08 15:16:46 2011 +0100 @@ -0,0 +1,25 @@ +xquery version "1.0"; + +(: Controller for the eSciDoc REST interface :) + +let $bla := "" + +return +if (starts-with($exist:path, '/ir/')) then + <dispatch xmlns="http://exist.sourceforge.net/NS/exist"> + <forward url="/mpdl/escidoc/ESciDocRESTServlet"> + <add-parameter name="escidocUrl" value="{$exist:path}"/> + </forward> + </dispatch> +else if (contains($exist:path, '/exist:xquery/execute')) then + <dispatch xmlns="http://exist.sourceforge.net/NS/exist"> + <forward url="/mpdl/escidoc/ESciDocRESTServlet"> + <add-parameter name="escidocUrl" value="{$exist:path}"/> + </forward> + </dispatch> +else + (: everything else is passed through :) + <ignore xmlns="http://exist.sourceforge.net/NS/exist"> + <cache-control cache="yes"/> + </ignore> + \ No newline at end of file