qexo-general
[Top][All Lists]
Advanced

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

Re: [Qexo-general] declare variable problem


From: Joseph Coffland
Subject: Re: [Qexo-general] declare variable problem
Date: Fri, 20 Feb 2004 16:54:19 -0500

I forgot to mention that I am using the CVS version.  I tried it again
with the kawa-1.7.90 release and it worked fine.  Sorry for the noise.

Joseph


On Fri, 20 Feb 2004 16:41:17 -0500, "Joseph Coffland"
<address@hidden> said:
> I'm having trouble getting variable declarations to work.
> 
> I created a simple XQuery file called input.xql with the following
> contents:
> 
>   declare variable $input {"test.xml"};
> 
>   <node file="{$input}"/>
> 
> 
> I ran the following command:
> 
>   java -jar kawa-1.7.90.jar --xquery input.xql
> 
> 
> I expected to get:
> 
>   <?xml version="1.0"?>
>   <node file="test.xml" />
> 
> 
> But instead get this error:
> 
>   java.lang.NoSuchFieldError: input
>           at atInteractiveLevel.apply(input.xql)
>           at gnu.mapping.CallContext.runUntilDone(CallContext.java:289)
>           at gnu.expr.ModuleExp.evalModule(ModuleExp.java:188)
>           at kawa.Shell.run(Shell.java:233)
>           at kawa.standard.load.loadSource(load.java:162)
>           at kawa.standard.load.apply(load.java:275)
>           at kawa.Shell.runFile(Shell.java:298)
>           at kawa.repl.main(repl.java:660)
>   <?xml version="1.0"?>
> 
> 
> It works if I change input.xql to this:
> 
>   let $input := "test.xml" return
> 
>   <node file="{$input}"/>
> 
> 
> I've attempted to debug this problem with no luck.  Any ideas?
> 
> Thanks,
> 
> Joseph
> -- 
>   Joseph Coffland
>   address@hidden
> 
> 
> _______________________________________________
> Qexo-general mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/qexo-general
-- 
  Joseph Coffland
  address@hidden




reply via email to

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