RE: XQuery implementations

The query below has several bugs.  There is no such 
expression as:  
  document(/db/quiz/data)
in XPath.  Maybe you meant document("somedoc")/db/quiz/data.

In the expression:
  @id = 'a'
the id attribute is defined w.r.t. the context node
but the way this query is written, I'm guessing
the context node is not defined externally. 
For-expressions _do not_ bind the context node.

Assuming the query can be rewritten correctly,
Galax can evaluate it.  See http://db.bell-labs.com/galax

Best,
Mary

On Fri, 2003-11-21 at 10:39, Howard Katz wrote:
> Hi Juha,
> I have a Java implementation that will do that. At least it will as soon I
> post my newest version to my website. Look for it in a few days at
> https://sourceforge.net/projects/xqengine/. If you don't want to wait, drop
> me a line and I'll ship you the jar file right now.
> Michael Kay's Saxon should also be able to handle that query.
> Best,
> Howard
> 
> > -----Original Message-----
> > From: www-ql-request@w3.org [mailto:www-ql-request@w3.org]On Behalf Of
> > Juha Vierinen
> > Sent: Friday, November 21, 2003 5:19 AM
> > To: www-ql@w3c.org
> > Subject: XQuery implementations
> >
> > Hi,
> >
> > Does anyone know of a open source XQuery implementation that can do the
> > following statement:
> >
> >
> > for $quizes in document(/db/quiz/data)/quiz
> >     for $categories in $quizes/category
> >        for $questions in $categories/question
> >        where @id = 'a'
> >        return
> >        <quiz>
> >            {$quizes/@*}
> >             <category>
> >                {$categories/@*}
> >                      {$question}
> >             </category>
> > </quiz>
> >
> >
> > Thanks,
> >
> > juha
> >
-- 
Mary Fernandez <mff@research.att.com>
AT&T Labs - Research

Received on Friday, 21 November 2003 11:25:26 UTC