This is the mail archive of the kawa@sources.redhat.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problem with Java application


Hi Folks:

	I Am new to kawa and I am running into the a problem.  Following
is a piece of code, for which I am getting the error that follows it, Any
idea of what the problem could be?

declare namespace op = "http://www.w3.org/2002/11/xquery-operators";

      <results>
       {op:numeric-divide(xs:unsignedShort("0"),xs:unsignedShort("65535"))}
      </results>

Error while evaluating Query java.lang.RuntimeException: invalid syntax in eval
form:
<string>:10:23: missing ')' - saw namespace @:22
<string>:13:9: missing PrimaryExpr
<string>:13:9: missing ')' - saw  @:8
<string>:13:76: missing ')' - saw  @:75
<string>:14:16: saw end tag '</results>' not in an element constructor
<string>:15:1: missing PrimaryExpr


Also the following similar piece of code generate the error given below it.


      <results>
       {fn:avg((xs:short("-32768")))}
      </results>

Error while evaluating Query gnu.mapping.UnboundSymbol: Unbound symbol fn:avg


Thanks, Carmelo Montanez



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]