You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Carsten Ziegeler <cz...@sundn.de> on 2000/11/06 15:55:26 UTC
[C2]: Patch for bug in XercesParser
The org.apache.cocoon.components.parser.XercesParser does not set the lexical handler correctly.
The following line must be moved from the constructor to the parse() method:
this.parser.setProperty("http://xml.org/sax/properties/lexical-handler",
super.lexicalHandler);
During the constructor the (super.)lexicalHandler is not yet initialised, so the setting of the property was too early.
Regards
Carsten Ziegeler
Open Source Group sunShine - Lighting up e:Business
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de mailto:cziegeler@sundn.de
================================================================
Re: [C2]: Patch for bug in XercesParser
Posted by Ross Burton <ro...@mail.com>.
Carsten Ziegeler wrote:
>
> The org.apache.cocoon.components.parser.XercesParser does not set the lexical handler correctly.
> The following line must be moved from the constructor to the parse() method:
>
> this.parser.setProperty("http://xml.org/sax/properties/lexical-handler",
> super.lexicalHandler);
>
> During the constructor the (super.)lexicalHandler is not yet initialised, so the setting of the property was too early.
Fixed. Thanks!
Ross