[oXygen-user] oXygen-user Digest, Vol 110, Issue 15

David Birnbaum djbpitt at gmail.com
Mon Dec 30 05:18:18 CST 2019


Thank you, Joe! Roy's work-around does what I need.

Date: Sun, 29 Dec 2019 17:35:37 -0500
> From: Joe Wicentowski <joewiz at gmail.com>
> To: oxygen-user at oxygenxml.com
> Subject: Re: [oXygen-user] eXist-db in <oXygen/>?
> Message-ID:
>         <
> CAHwerk3DS0W5ZLU36v6dUQinCXJYrhUCVuc4+AJhtecD946VNQ at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi David,
>
> Let me quote from Adam Retter's response to a similar question on
> exist-open[^1]:
>
> > The issue you have is that the Request object only makes sense when your
> XQuery is run by eXist-db's webserver, this is because the "request" is the
> incoming HTTP request. When running via oxygen there is no HTTP request.
>
> The same factor affects other utilities that talk to eXist via XML-RPC,
> such as the Java Admin Client.  makes sense, because the oXygen data source
> connection that is responsible for executing eXist queries uses the XML-RPC
> protocol.  See the attached screenshot.
>
> In the same thread, Roy Walter suggested a workaround: using the
> 3-parameter variant of the request:get-parameter function, in which the 3rd
> parameter instructs the function whether to fail on error or not.[^2]  If
> you change your use of the function to:
>
> ```
> request:get-parameter('story', 'x', false());
> ```
>
> ... then the function will return "x" when it otherwise would raise an
> error.
>
> Best,
> Joe
>
> [^1]: https://markmail.org/message/afds3uvbbouees7a
> [^2]: https://markmail.org/message/offwjsqd46fcofqc\
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.oxygenxml.com/pipermail/oxygen-user/attachments/20191230/8415adf0/attachment.html>


More information about the oXygen-user mailing list