qexo-general
[Top][All Lists]
Advanced

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

Re: [Qexo-general] Why doesn't this name-expression work?


From: Per Bothner
Subject: Re: [Qexo-general] Why doesn't this name-expression work?
Date: Thu, 17 Jul 2003 23:13:00 -0700
User-agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4) Gecko/20030612

Craig Munday wrote:
Hi,

I was just wondering whether the following name expression should work with
the computed element constructor.

element { string("hello") } { "world" }

Yes - oops.  The attached patch (checked into CVS) should fix it.
--
        --Per Bothner
address@hidden   http://per.bothner.com/

Index: XQParser.java
===================================================================
RCS file: /cvs/kawa/kawa/gnu/xquery/lang/XQParser.java,v
retrieving revision 1.52
diff -u -r1.52 XQParser.java
--- XQParser.java       10 Jul 2003 17:01:48 -0000      1.52
+++ XQParser.java       18 Jul 2003 06:06:44 -0000
@@ -1808,7 +1808,7 @@
          kind = 't';
        else
          return '\0';
-       if (kind == 'e' || kind == 'a')
+       if (next != '{' && (kind == 'e' || kind == 'a'))
          {
            if (! isNameStart((char) next))
              return '\0';

reply via email to

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