Mercurial > hg > mpdl-group
view software/eXist/webapp/mpdl/escidoc/controller.xql @ 15:e99964f390e4
diverse Fehlerbehebungen
author | Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 29 Aug 2011 17:40:19 +0200 |
parents | 5589d865af7a |
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>