Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 85680 invoked from network); 4 Sep 2002 20:38:56 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 4 Sep 2002 20:38:56 -0000 Received: (qmail 20377 invoked by uid 97); 4 Sep 2002 20:39:32 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 20360 invoked by uid 97); 4 Sep 2002 20:39:31 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 20327 invoked by uid 98); 4 Sep 2002 20:39:30 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Message-ID: <3D766F73.6040809@sun.com> Date: Wed, 04 Sep 2002 16:39:15 -0400 From: Jean-Francois Arcand User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jakarta Commons Developers List Subject: Re: digester 2.0 [WAS Re: [digester] [PROPOSAL] More pattern matching flexibility] References: <2B65F403-BEC0-11D6-8363-003065DC754C@blueyonder.co.uk> <3D74BF9B.8010704@gmx.de> <3D74D195.1000307@gmx.de> <3D762C19.8070606@gmx.de> <3D762E1E.90008@apache.org> <3D764012.8030109@gmx.de> <3D7641E9.7080108@apache.org> <3D764BE9.6000203@gmx.de> Content-Type: multipart/alternative; boundary="------------060307030208010607070200" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --------------060307030208010607070200 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Christopher Lenz wrote: > Jean-Francois Arcand wrote: > >>> BTW, Jean-Francois, you've added the XML Schema support, right? Is >>> there any reason why Digester.JAXP_SCHEMA_LANGUAGE is neither static >>> nor final? >> >> >> >> Yes, the goal was to be able to use the parser with another schema >> language (ex: >> http://www.ascc.net/xml/resource/schematron/schematron.html) or a >> user-defined schema language. BTW, the way I name the variable is >> misleading since uppercase is usually used for final/static variable... > > > > Okay, but there's: > > protected String schemaLanguage = W3C_XML_SCHEMA; > > as well as the aforementioned: > > protected String JAXP_SCHEMA_LANGUAGE = > "http://java.sun.com/xml/jaxp/properties/schemaLanguage"; > > > AFAICT, the *first* is the variable that should be changed when the > user wants to use another schema language. The second is just the name > of the property in JAXP, and I think that should be "private static > final" instead of protected. Or would a user have a reason to use a > different name for the JAXP property? Yes, since some Digester user extend the class and change the normal behaviour. So, in some use case, they might need access to the protected JAXP_SCHEMA_LANGUAGE attribute -- Jeanfrancois --------------060307030208010607070200--