Re: Bug report (Re: Merging GNU JAXP into kaffe)

Ito Kazumitsu <[email protected]>
Newsgroups gmane.comp.java.classpath.extensions.xml
Message-ID <[email protected]>
In message "Re: Bug report (Re: [Classpathx-xml] Merging GNU JAXP into kaffe)"
    on 02/12/05, David Brownell <[email protected]> writes:

> No, that code is right ... did you have a chance
> yet to try that patch I sent?  The problem would be
> that there's one use of that bind() call in a place
> where its potential side effect shouldn't be visible;
> the fix is to prevent that.

In order to prevent such side effects, ...

>  	// connect pipeline and error handler
> +	// don't let _this_ call to bind() affect xmlns* attributes
> +	nsdecls = aelfred2.getFeature (
> +	    SAXDriver.FEATURE + "namespace-prefixes");
>  	EventFilter.bind (aelfred2, next);
> +	if (!nsdecls)
> +	    aelfred2.setFeature (
> +		SAXDriver.FEATURE + "namespace-prefixes",
> +		true);
                ^^^^
                I think this should be false.

Having changed this "true" to "false",  I now get satisfactory results.
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.