qexo-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qexo-general] load and require


From: Per Bothner
Subject: Re: [Qexo-general] load and require
Date: Tue, 13 Aug 2002 23:11:28 -0700
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1b) Gecko/20020722

Marco Vezzoli wrote:
require() throws some exception (maybe I used the wrong syntax).

require is Scheme syntax, not a function.  Scheme syntax (including
macros) are handled as part of Scheme "parsing", when S-expressions
(lists) are converted to Expression objects.  The XQuery parser creates
Expressions directly, without going via S-expressions and thus not
invoking the syntax/macro expander.

It would of course be possible to define some XQuery extension
that corresponds to XQuery, but to would be an extension that
would have to be defined and implemented.

One option you can try is to load a Scheme module with the -f
flag on the Kawa command line.  For example:

kawa -C fact.scm
kawa -f fact --xquery --
--
        --Per Bothner
address@hidden   http://www.bothner.com/per/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]