cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "kavitha ramesh" <kavirames...@rediffmail.com>
Subject Re: RE: RE: Re: mixing xml and xsl with i18n
Date Fri, 19 Jul 2002 09:12:55 GMT
Hi Konstantin,

There is no 1i8n related messages in the log file.I turned off the 
xslt and tried.Iam getting the names Kavitha, Ramesh in the 
browser.

Kavitha

On Thu, 18 Jul 2002 Piroumian Konstantin wrote :
> > From: kavitha ramesh [mailto:kaviramesh77@rediffmail.com]
> >
> > Hi Konstantin,
> >
> > 1.I checked the cocoon log file and it says that:
> > DEBUG   (2002-07-18) 17:15.25:840   [cocoon  ]
> > (/cocoon/concatenate/jsp/conc) 
>HttpProcessor[8080][4]/DefaultPool:
> > Retrieving a
> > org.apache.cocoon.components.pipeline.CachingEventPipeline 
> from
> > the pool
>
>Look for any i18n related messages.
>Turn off i18n part to see is your result correct, do you have 
>correct keys.
>Turn of XSLT to see if you have correct XML at startup.
>etc.
>
> >
> > 2.I use JSP since I dont have much knowledge in XSP.
>
>If you know JSP then it won't be difficult to learn XSP. It's 
>very similar
>to XML syntax of JSP 1.2.
>
> >
> > 3.As per your suggestion I ran the transformer once in the
> > sitemap.But still in the browser, nothing is displayed,,,
>
>So, try other suggestions from the above.
>
>Konstantin
>
> >
> > Kavitha.
> >
> > On Thu, 18 Jul 2002 Piroumian Konstantin wrote :
> > > > From: kavitha ramesh 
>[mailto:kaviramesh77@rediffmail.com]
> > > >
> > > > Hi Jeorg,
> > > >
> > > > The output is just a blank page.My sitemap is as 
>follows(My
> > >file
> > > > is a jsp file):
> > > >
> > > > <map:match pattern="jsp/*">
> > > > <map:generate type="jsp" 
>src="/concatenate/jsp/{1}.jsp"/>
> > > > <map:transform type="i18n"/>
> > > > <map:transform src="conc.xsl"/>
> > > > <map:transform type="i18n"/>
> > > > <map:serialize type="html"/>
> > > > </map:match>
> > > >
> > > >
> > > > my log files has the following content:
> > > >
> > > > Logger for category root.xslt returned
> > >
> > >And that's all? Are you looking at the Cocoon logs? See
> > ><cocoon>/WEB-INF/logs directory.
> > >
> > >Seems that your problem has nothing to do with i18n and
> > >something's wrong
> > >with your sitemap or JSP page.
> > >
> > >Btw, why are you using JSP? It's slower than XSP, cause it
> > >generates text
> > >that should be parsed, while XSP generates SAX events 
>directly.
> > >
> > >Is there a real need for running i18n two times? Won't it 
>be
> > >enough to run
> > >it in the end? It will also raise your pipeline 
>performance.
> > >
> > >Konstantin
> > >
> > > >
> > > >
> > > > Kavitha
> > > >
> > > >
> > > > On Thu, 18 Jul 2002 Joerg Heinicke wrote :
> > > > >What's your output? You should at least see 'Male' and
> > >'Female'
> > > > >in the output. If you don't specify a key (i18n:key
> > >attribute),
> > > > >the text in the <i18n:text></i18n:text> element is used

>as
> > >key,
> > > > >therefore I wrote <xsl:value-of select="@sex"/>.
> > > > >
> > > > >How does your sitemap according i18n look like? What's
> > >written in
> > > > >the log files?
> > > > >
> > > > >Joerg
> > > > >
> > > > >kavitha ramesh wrote:
> > > > >>
> > > > >>Hi Jeorg,
> > > > >>
> > > > >>Thanks for your reply.
> > > > >>Nothing is happening when I tried your code.In the xsl
> > >file
> > > > >>should I add the message keys Male and Female?
> > > > >>
> > > > >>Kavitha
> > > > >>
> > > > >>
> > > > >>On Thu, 18 Jul 2002 Joerg Heinicke wrote :
> > > > >>
> > > > >>><xsl:stylesheet version="1.0"
> > > > >>>xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> > > > >>>xmlns:i18n="http://apache.org/cocoon/i18n/2.0">
> > > > >>>
> > > > >>>   <xsl:template match="gender">
> > > > >>>     <i18n:text><xsl:value-of 
>select="@sex"/></i18n:text>
> > > > >>>     <xsl:text/> <xsl:value-of select="name"/>
> > > > >>>   </xsl:template>
> > > > >>>
> > > > >>></xsl:stylesheet>
> > > > >>>
> > > > >>>in catalogue_en.xml:
> > > > >>>
> > > > >>><message key="Male">Mr.</message>
> > > > >>><message key="Female">Mrs.</message>
> > > > >>>
> > > > >>>in catalogue_de.xml:
> > > > >>>
> > > > >>><message key="Male">Frau</message>
> > > > >>><message key="Female">Herr</message>
> > > > >>>
> > > > >>>Regards,
> > > > >>>
> > > > >>>Joerg
> > > > >>>
> > > > >>>
> > > > >>>kavitha ramesh wrote:
> > > > >>>
> > > > >>>>Hi,
> > > > >>>>
> > > > >>>>I have an xml file which is as follows:
> > > > >>>>
> > > > >>>>simple.xml
> > > > >>>>----------
> > > > >>>><menu>
> > > > >>>><person>
> > > > >>>><gender sex="Male">
> > > > >>>><name>Ramesh</name>
> > > > >>>></gender>
> > > > >>>></person>
> > > > >>>><person>
> > > > >>>><gender sex="Female">
> > > > >>>><name>Kavitha</name>
> > > > >>>></gender>
> > > > >>>></person>
> > > > >>>><person>
> > > > >>>></menu>
> > > > >>>>
> > > > >>>>and my xsl file is as follows:
> > > > >>>>
> > > > >>>>simple.xsl
> > > > >>>>----------
> > > > >>>>
> > > > >>>><i18n:text>text1</i18n:text>
> > > > >>>><i18n:text>text2</i18n:text>
> > > > >>>>
> > > > >>>>
> > > > >>>>and my messages for i18n are as follows:
> > > > >>>>
> > > > >>>>messages_en
> > > > >>>>-----------
> > > > >>>><message key="text1">Mr</message>
> > > > >>>><message key="text2">Mrs</message>
> > > > >>>>
> > > > >>>>messages_de
> > > > >>>>-----------
> > > > >>>><message key="text1">Herrn</message>
> > > > >>>><message key="text2">Frau</message>
> > > > >>>>
> > > > >>>>If the sex is male, the browser should display
> > > > >>>>
> > > > >>>>Mr.Ramesh(English)
> > > > >>>>Herrn.Ramesh(German)
> > > > >>>>
> > > > >>>>If the sex is female then the browser should display
> > > > >>>>
> > > > >>>>Mrs.Kavitha(English)
> > > > >>>>Frau.Kavitha(German)
> > > > >>>>
> > > > >>>>How do I do this?Please help me,,,
> > > > >>>>
> > > > >>>>Kavitha.
> > > > >
> > > > >--
> > > > >System Development
> > > > >VIRBUS AG
> > > > >Fon  +49(0)341-979-7419
> > > > >Fax  +49(0)341-979-7409
> > > > >joerg.heinicke@virbus.de
> > > > >www.virbus.de
> > > > >
> > > > >
> > > >
> > >
> > 
> >---------------------------------------------------------------------
> > > > >Please check that your question  has not already been
> > >answered in
> > > > >the
> > > > >FAQ before posting.
> > > > ><http://xml.apache.org/cocoon/faq/index.html>
> > > > >
> > > > >To unsubscribe, e-mail:
> > > > ><cocoon-users-unsubscribe@xml.apache.org>
> > > > >For additional commands, e-mail:
> > > > ><cocoon-users-help@xml.apache.org>
> > > > >
> > > >
> > > > 
>_________________________________________________________
> > > > Click below  to experience Aishwarya Rai's beauty 
>secrets.
> > >New
> > > > International Lux Skincare - It's not just soap, It's
> > >skincare.
> > > > http://www.luxskincare.com
> > > >
> > > >
> > > >
> > 
> >---------------------------------------------------------------------
> > > > Please check that your question  has not already been 
>answered
> > >in the
> > > > FAQ before posting.
> > ><http://xml.apache.org/cocoon/faq/index.html>
> > > >
> > > > To unsubscribe, e-mail:
> > ><cocoon-users-unsubscribe@xml.apache.org>
> > > > For additional commands, e-mail:
> > ><cocoon-users-help@xml.apache.org>
> > > >
> > >
> > 
> >---------------------------------------------------------------------
> > >Please check that your question  has not already been 
>answered in
> > >the
> > >FAQ before posting.
> > ><http://xml.apache.org/cocoon/faq/index.html>
> > >
> > >To unsubscribe, e-mail:
> > ><cocoon-users-unsubscribe@xml.apache.org>
> > >For additional commands, e-mail:
> > ><cocoon-users-help@xml.apache.org>
> > >
> >
> > _________________________________________________________
> > Click below  to experience Aishwarya Rai's beauty secrets. 
>New
> > International Lux Skincare - It's not just soap, It's 
>skincare.
> > http://www.luxskincare.com
> >
> >
> > 
>---------------------------------------------------------------------
> > Please check that your question  has not already been answered 
>in the
> > FAQ before posting.     
><http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail:     
><cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:   
><cocoon-users-help@xml.apache.org>
> >
>
>---------------------------------------------------------------------
>Please check that your question  has not already been answered in 
>the
>FAQ before posting.     
><http://xml.apache.org/cocoon/faq/index.html>
>
>To unsubscribe, e-mail:     
><cocoon-users-unsubscribe@xml.apache.org>
>For additional commands, e-mail:   
><cocoon-users-help@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message