[kaffe] GNU jaxp included in kaffe does not work with Saxon 7.3

Dalibor Topic robilad@yahoo.com
Tue, 3 Dec 2002 15:23:25 -0800 (PST)


--0-1743266951-1038957805=:15565
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

--- Ito Kazumitsu <ito.kazumitsu@hitachi-cable.co.jp>
wrote:
> 
> In message "[kaffe] GNU jaxp included in kaffe does
> not work with Saxon 7.3"
>     on 02/12/03, Ito Kazumitsu
> <ito.kazumitsu@hitachi-cable.co.jp> writes:
> 
> > Now that GNU jaxp has been included in kaffe,  I
> expect I can
> > run Saxon 7.3 on kaffe without adding gnujaxp.jar
> to CLASSPATH.
> > 
> > But unfortunately, this is not so and SAXException
> saying "Parser
> > configuration problem: namespace reporting is not
> enabled" is thrown. 
> > 
> > When using gnujaxp.jar from gnujaxp-1.0beta1, 
> this issue does not
> > occur.
> 
> Using the attached program and data,  I compared the
> results
> of jaxp of JDK 1.4,  jaxp of gnujaxp-1.0beta1 and
> jaxp of kaffe.
> 

I've looked a little into this one. I've attached a
simplified form of the test case, attribute.xsl. In
order to find the source of the bug, I have played
around with adding class files from kaffe to
gnujaxp1.0-beta1 to make it output the additional
attribute. It turns out that the file that causes the
change in output is gnu/xml/pipeline/EventFilter.java.
When I replace its class file in gnujaxp.jar with the
one from from kaffe's rt.jar I get the additional
output.

The version of EventFilter in kaffe is 1.15, in
gnujaxp.jar it's 1.13. Version 1.14 produces the extra
output, so the bug must have been introduced in 1.14.
I've dug deeper into this, and I think the bug comes
from the code below this comment in method bind()
// DOM building, printing, layered validation, and
other
// things don't work well when prefix info is
discarded.
// Include it by default, whenever possible.

commenting the try-catch block below it out and just
setting prefixes to false works for me. I've attached
a patch to do that. Could you give it  a try and see
if that fixes your problems?

best regards,

dalibor topic

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
--0-1743266951-1038957805=:15565
Content-Type: text/xml; name="attribute.xsl"
Content-Description: attribute.xsl
Content-Disposition: inline; filename="attribute.xsl"

<?xml version="1.0"?>

<!DOCTYPE xsl:stylesheet>

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                version="1.0">

</xsl:stylesheet>

--0-1743266951-1038957805=:15565
Content-Type: application/octet-stream; name="prefixes-always-false.diff"
Content-Transfer-Encoding: base64
Content-Description: prefixes-always-false.diff
Content-Disposition: attachment; filename="prefixes-always-false.diff"

LS0tIC9ob21lL3RvcGljL0NWUy9rYWZmZS9saWJyYXJpZXMvamF2YWxpYi9n
bnUveG1sL3BpcGVsaW5lL0V2ZW50RmlsdGVyLmphdmEJVHVlIERlYyAgMyAw
MjoyNzo1NyAyMDAyCisrKyBnbnUveG1sL3BpcGVsaW5lL0V2ZW50RmlsdGVy
LmphdmEJV2VkIERlYyAgNCAwMTozNTowOCAyMDAyCkBAIC0yODIsNiArMjgy
LDcgQEAKIAkvLyBET00gYnVpbGRpbmcsIHByaW50aW5nLCBsYXllcmVkIHZh
bGlkYXRpb24sIGFuZCBvdGhlcgogCS8vIHRoaW5ncyBkb24ndCB3b3JrIHdl
bGwgd2hlbiBwcmVmaXggaW5mbyBpcyBkaXNjYXJkZWQuCiAJLy8gSW5jbHVk
ZSBpdCBieSBkZWZhdWx0LCB3aGVuZXZlciBwb3NzaWJsZS4KKy8qCiAJdHJ5
IHsKIAkgICAgcHJvZHVjZXIuc2V0RmVhdHVyZSAoRkVBVFVSRV9VUkkgKyAi
bmFtZXNwYWNlLXByZWZpeGVzIiwKIAkJdHJ1ZSk7CkBAIC0yODksNiArMjkw
LDggQEAKIAl9IGNhdGNoIChTQVhFeGNlcHRpb24gZSkgewogCSAgICBwcmVm
aXhlcyA9IGZhbHNlOwogCX0KKyovCitwcmVmaXhlcz1mYWxzZTsKIAogCS8v
IE5PVEU6ICBUaGlzIGxvb3AgZG9lc24ndCB1c2UgImluc3RhbmNlb2YiLCBz
aW5jZSB0aGF0CiAJLy8gd291bGQgcHJldmVudCBjb21waWxpbmcvbGlua2lu
ZyB3aXRob3V0IHRob3NlIGNsYXNzZXMK

--0-1743266951-1038957805=:15565--