cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@sundn.de>
Subject AW: [C2.1] JaxpParser minor patch
Date Wed, 10 Oct 2001 09:25:05 GMT
Hi Ovidiu,

I changed your patch in that way, that the lexical handler tried
to set, but the exception is ignored. This is the suggested way
for SAX2-EXT package.

Please test, if this works for you.

Thanks,

Carsten

Open Source Group                        sunShine - b:Integrated
================================================================
Carsten Ziegeler, S&N AG, Klingenderstrasse 5, D-33100 Paderborn
www.sundn.de                          mailto: cziegeler@sundn.de
================================================================


> -----Ursprungliche Nachricht-----
> Von: ovidiu@orion.rgv.hp.com [mailto:ovidiu@orion.rgv.hp.com]Im Auftrag
> von Ovidiu Predescu
> Gesendet: Dienstag, 9. Oktober 2001 23:41
> An: cocoon-dev@xml.apache.org
> Betreff: [C2.1] JaxpParser minor patch
>
>
> The following patch comments out setting of the lexical-handler
> property. This makes Cocoon work with Crimson instead of Xerces, which
> doesn't seem to have this property.
>
> diff -ruN -x *CVS* -x *build* -x *ChangeLog* -x *README.hp* -I
> \$Id:.*\$ -I \$Revision:.*\$ -I \$Author:.*\$
> xml-cocoon2/src/org/apache/cocoon/components/parser/JaxpParser.jav
> a Cocoon2/src/org/apache/cocoon/components/parser/JaxpParser.java
> ---
> xml-cocoon2/src/org/apache/cocoon/components/parser/JaxpParser.j
> ava	Tue Aug 21 14:30:59 2001
> +++
> Cocoon2/src/org/apache/cocoon/components/parser/JaxpParser.java
> Fri Oct  5 14:08:38 2001
> @@ -91,9 +91,11 @@
>          XMLReader reader = parser.getXMLReader();
>
>
> reader.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
> -
> reader.setProperty("http://xml.org/sax/properties/lexical-handler",
> +        /*
> +
> reader.setProperty("http://xml.org/sax/properties/lexical-handler",
>                             super.lexicalHandler);
> -
> +        */
> +
>          reader.setErrorHandler(this);
>          reader.setContentHandler(super.contentHandler);
>  		if(this.resolver != null)
>
>
> Regards,
> --
> Ovidiu Predescu <ovidiu@cup.hp.com>
> http://orion.rgv.hp.com/ (inside HP's firewall only)
> http://sourceforge.net/users/ovidiu/ (my SourceForge page)
> http://www.geocities.com/SiliconValley/Monitor/7464/ (GNU, Emacs,
> other stuff)
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message