From: Joe W. <jo...@gm...> - 2010-07-07 21:52:34
|
Hi Mountainbiker, > How would this XQuery file be replaced with an entry in > http://host/exist/xquery/wc/controller.xql? Do I understand correctly that you're trying to set up eXist's URL rewriting to intercept URL requests like http://host/exist/xquery/wc/paint.xql and forward these requests to a paint.xql file somewhere inside of EXIST_HOME/webapp on the filesystem? Here's what we need to know to suggest a controller.xql: 1. The desired URL Request: http://host/exist/xquery/wc/paint.xql 2. The actual filesystem or database location where (a) the controller.xql and (b) paint.xql files reside: a) EXIST_HOME/webapp/... ? b) EXIST_HOME/webapp/... ? 3. Relevant controller-config.xml entry corresponding to requests for /xquery? If you fill in 2a, 2b, and 3, that will help. Cheers, Joe On Wed, Jul 7, 2010 at 5:22 PM, mountainbiker <mai...@gm...> wrote: > > There is an XQuery file on a file system called paint.xql which is as > follows: > xquery version "1.0"; > import module namespace do="http://somewhere/something"; > do:paint-the-town() > > It returns an element as follows: <done dateTime="YYYYMMDD-hhmm"/> > > It is called as follows: http://host/exist/xquery/wc/paint.xql > > How would this XQuery file be replaced with an entry in > http://host/exist/xquery/wc/controller.xql? |