Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 7511 invoked by uid 500); 23 Apr 2002 13:21:42 -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 7498 invoked from network); 23 Apr 2002 13:21:41 -0000 Message-ID: <012401c1eac9$cc37f570$6150000a@flagship.ru> From: "Konstantin Piroumian" To: References: <3997D874A598D51190A70002A56BC99502368579@TOCOMEXC17> <010001c1eab7$69d695b0$1100000a@plaszczak> <3CC54D5C.382906CE@opencascade.com> <014e01c1eac1$06ec9440$1100000a@plaszczak> <011401c1eac2$4f1de9c0$6150000a@flagship.ru> <015a01c1eac7$ac3d6220$1100000a@plaszczak> Subject: Re: i18n in xslt Date: Tue, 23 Apr 2002 17:21:37 +0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N > My stylesheet: > > component.xsl: > > > xmlns:i18n="http://apache.org/cocoon/i18n/2.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > > > > > > > select="$action"/> > > > > >
> > select="$action"/> > document.batch.submit(); return > (false) > GO! Simply remove and leave only you'll get what you want. This is a pure XSLT problem and has nothing to do with i18n. You cannot use markup inside of . -- Konstantin > >
> >
> > > > > > > >
> > messages.xml > > IDZ > > > in error.log is: > ERROR (2002-04-23) 14:56.55:129[core.xslt-processor](/cocoon/my/employees) > HttpProcessor[8080][4]/TraxErrorHandler: Error in TraxTransformer: > file:/E:/tomcat/webapps/cocoon/my/stylesheets/component.xsl; Line 64; Column > 99; > ; SystemID: file:/E:/tomcat/webapps/cocoon/my/stylesheets/component.xsl; > Line#: 64; Column#: 99 > javax.xml.transform.TransformerException: i18n:text is not allowed in this > position in the stylesheet! > > sitemap.log and rest have something like (i can send if it will be needed): > ERROR (2002-04-23) 14:56.55:149 [sitemap](/cocoon/my/employees) > HttpProcessor[8080][4]/sitemap_xmap: Sitemap > org.apache.cocoon.ProcessingException: Exception in creating Transform > Handler: java.lang.NullPointerException > > Trouble is that my stylesheet need to insert tag which will be > processed on. Then i get error. When i have i18n in serverpages generator > all work ok. > I suppose i have trouble with namespaces but where i need insert it (xmlns)? > I have it in xsl:stylesheet. > > ----- Original Message ----- > From: "Konstantin Piroumian" > To: > Sent: Tuesday, April 23, 2002 2:28 PM > Subject: Re: i18n in xslt > > > > > No. I have messages.xml only. If i think properly when i have no > > specialized > > > message_locale.xml file general message.xml will be used - am i right? > So > > i > > > needn't specify locale request parameter...? > > > > Yes, exactly like that! > > > > > When i try to use tags in my any.xml all works good. > > > But i want to avoid this and try to use in transformer: > > > > > > transformer pipe is: > > > > > > > > > > > > > > > > > > > This should work. > > > > > > > > My main idea is to transformer component.xsl insert internationalization > > > information in XHTML like: > > > - button labels, > > > - comment, > > > - help text for user > > > in my component only. But i want to avoid insertion this information in > > file > > > processed by generator and passing it on. But maybe it is better > (simpler) > > > way? > > > > What is the exact problem with it? Have you looked at logs? > > > > -- > > Konstantin > > > > > > > > ----- Original Message ----- > > > From: "KOZLOV Roman" > > > To: > > > Sent: Tuesday, April 23, 2002 2:02 PM > > > Subject: Re: i18n in xslt > > > > > > > > > > Hello, > > > > > > > > Do you specify request parameter "locale" with value for which > > > > messages_.xml exists? > > > > > > > > Roman > > > > > > > > Jerzy Kut wrote: > > > > > > > > > Sorry - of course. But it don't helps. I paste only abbrewiated > > snippets > > > > > into post. > > > > > But thank You. > > > > > Trouble is located somewhere in component.xslt i think, but i don't > > > > > understand why nullpointerexception is throwed... > > > > > > > > > > ----- Original Message ----- > > > > > From: "TREGAN Fabien" > > > > > To: > > > > > Sent: Tuesday, April 23, 2002 1:09 PM > > > > > Subject: RE: i18n in xslt > > > > > > > > > > > not sure this will help but... > > > > > > > > > > > > >my-space.xsl - logicsheet processing tag for other tags > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > > > > > 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: > > > > > > > > > > > > --------------------------------------------------------------------- > > > > 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: > > > > > > > --------------------------------------------------------------------- > > 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: > --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: