RE: XQuery implementations

Mary Fernandez <[email protected]>
Newsgroups gmane.comp.web.query-languages
Organization AT&T Labs - Research
Message-ID <[email protected]>
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: [email protected] [mailto:[email protected]]On Behalf Of
> > Juha Vierinen
> > Sent: Friday, November 21, 2003 5:19 AM
> > To: [email protected]
> > 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 <[email protected]>
AT&T Labs - Research
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.