Mercurial > hg > mpdl-group
view 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 source
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>