Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 13524 invoked from network); 20 Oct 2003 19:14:57 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 20 Oct 2003 19:14:57 -0000 Received: (qmail 62215 invoked by uid 500); 20 Oct 2003 19:14:41 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 62162 invoked by uid 500); 20 Oct 2003 19:14:40 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 62128 invoked from network); 20 Oct 2003 19:14:40 -0000 Received: from unknown (HELO web13002.mail.yahoo.com) (216.136.174.12) by daedalus.apache.org with SMTP; 20 Oct 2003 19:14:40 -0000 Message-ID: <20031020191436.45163.qmail@web13002.mail.yahoo.com> Received: from [62.104.208.91] by web13002.mail.yahoo.com via HTTP; Mon, 20 Oct 2003 20:14:36 BST Date: Mon, 20 Oct 2003 20:14:36 +0100 (BST) From: =?iso-8859-1?q?Ricky=20Panaglucci?= Subject: Re: [digester] how to make use of xml:lang? To: Jakarta Commons Users List In-Reply-To: <756D95C4-026D-11D8-BB08-003065DC754C@blueyonder.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N i want some properties set according to given locale. if no lang:xml is specified in a given element, its values are taken. if no maching lang:xml is found, the element without lang:xml or with lang:xml="en" is taken. there is a method setSchemaLanguage, but i do not use schema. the best solution to me is indeed extending Digester, hooking into startElement() ... locale: en <- take this <- take this ricardo --- robert burrell donkin wrote: > AFAIK digester has no explicit support for xml:lang. > it would be possible > to add something to digester to keep track of the > current xml:lang value > but i suspect that it will be possible to solve your > problem without > needing to do so. > > could you explain what you want to do in more > detail? > > - robert > > On Sunday, October 19, 2003, at 08:22 PM, Ricky > Panaglucci wrote: > > > hello, > > does digester handle xml:lang attribute? > > > > i would like to generate according to > > > > > > > > > > i suspect this is rather related to sax in general > > could it be that i have to take care of it myself, > > including fallback if no matching declaration > > is found? > > > > thank you > > > > > > > ________________________________________________________________________ > > Want to chat instantly with your online friends? > Get the FREE Yahoo! > > Messenger http://mail.messenger.yahoo.co.uk > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > commons-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: > commons-user-help@jakarta.apache.org > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: > commons-user-help@jakarta.apache.org > ________________________________________________________________________ Want to chat instantly with your online friends? Get the FREE Yahoo! Messenger http://mail.messenger.yahoo.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org