[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qexo-general] Using the SAX API
From: |
Per Bothner |
Subject: |
Re: [Qexo-general] Using the SAX API |
Date: |
Tue, 27 May 2003 15:36:26 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.4b) Gecko/20030507 |
Alessandro Vernet wrote:
Now I am trying to use the SAX API and I am getting unexpected results.
For an example, see the attached program (Test.java). The XQuery
expression is: let $a := <a/> return $a, and nothing is sent to the SAX
ContentHandler when evaluating this expression.
I look a look at ContentConsumer, and I think I see a bug.
Basically, we need a flag to note when we're "within" a
startElement, since the input is a beginGroup followed by zero
or more attributes.
In beginGroup it uses inStartTag, while in endGroup it
uses numAttributes >= 0. So it *might* work to replace
the first test in endGroup by:
if (inStartTag != 0)
--
--Per Bothner
address@hidden http://per.bothner.com/