Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 67763 invoked by uid 500); 15 Oct 2001 20:19:25 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 67752 invoked from network); 15 Oct 2001 20:19:25 -0000 Message-Id: <5.1.0.14.2.20011015161804.00ae76b8@lynnparknt1> X-Sender: ENixon@lynnparknt1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 15 Oct 2001 16:19:04 -0400 To: cocoon-users@xml.apache.org From: Ed Nixon Subject: Re: Stuck in i18n and JDom In-Reply-To: <008201c0393f$18434ac0$0a01000a@ramy> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Server: VPOP3 V1.5.0 - Registered X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Do you think it might have something to do with the fact that your system date is a year and a few days off? Note the time/date stamp on the next line... At 10:07 PM 18/10/2000 +0200, you wrote: >Hi All > >I'm trying to add i18n to elements added dynamically from a Dom Transformer. >I'm using JDom to surround the elements with >here is the code I'm using > >org.jdom.Element CaptionEl = new org.jdom.Element(MenuParser.CAPTION); >org.jdom.Element I18nEl = new org.jdom.Element("text", "i18n", "; >I18nEl.setText(item.getCaption()); >CaptionEl.addContent(I18nEl); > >when I use the I18nTransformer after the above transformer, I got a >NullPointerException, >Although when I used a LogTransformer to check the output XML, it was >perfectly right.. > >Here's a sample output from the Log File used after the above code > >[startElement] uri=,local=caption,raw=caption >[startElement] uri=http://apache.org/cocoon/i18n/2.0,local=text,raw=i18n:text >[characters] About >[endElement] uri=http://apache.org/cocoon/i18n/2.0,local=text,qname=i18n:text >[endElement] uri=,local=caption,qname=caption > >So, the About should be used as a key and should be translated when the >i18n transformer used by locating >the correct catalogue... > >when I remove the I18nTransformer from the sitemap, I get no errors >and when I use just the I18nTransformer for static text alone, it gets >translated correctly >and the parts in the log file are exactly the same for both >elements coming from the static file >or from the above code. > >and the error page is attached to this message... > >Thanks in advance > >Yours >Ramy > >--------------------------------------------------------------------- >Please check that your question has not already been answered in the >FAQ before posting. > >To unsubscribe, e-mail: >For additional commands, e-mail: --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: