comparison 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
comparison
equal deleted inserted replaced
6:2396a569e446 7:5589d865af7a
1 xquery version "1.0";
2
3 (: Controller for the eSciDoc REST interface :)
4
5 let $bla := ""
6
7 return
8 if (starts-with($exist:path, '/ir/')) then
9 <dispatch xmlns="http://exist.sourceforge.net/NS/exist">
10 <forward url="/mpdl/escidoc/ESciDocRESTServlet">
11 <add-parameter name="escidocUrl" value="{$exist:path}"/>
12 </forward>
13 </dispatch>
14 else if (contains($exist:path, '/exist:xquery/execute')) then
15 <dispatch xmlns="http://exist.sourceforge.net/NS/exist">
16 <forward url="/mpdl/escidoc/ESciDocRESTServlet">
17 <add-parameter name="escidocUrl" value="{$exist:path}"/>
18 </forward>
19 </dispatch>
20 else
21 (: everything else is passed through :)
22 <ignore xmlns="http://exist.sourceforge.net/NS/exist">
23 <cache-control cache="yes"/>
24 </ignore>
25