Re:i18n

2003-06-25 Thread Kavitha Ramesh
Hi Konstantin,

My sitemap configuration is as follows:
map:transformer name="i18n" src="" catalogue-namemessages/catalogue-name catalogue-locationtranslations/catalogue-location /map:transformer

I dont have anything like untranslated-text in my sitemap configuration,,,
I cannot understand where does this untranslated-text comes from??

Kavitha


Take a look at i18n transformer configuration in your sitemap. Probably it defines \the 'untranslated-text' parameter which is used instead of the key value.-- Konstantin - Original Message -  From: Kavitha Ramesh  To: [EMAIL PROTECTED]  Sent: Tuesday, June 24, 2003 18:30 Subject: i18n  Hi, I read the following in a documentation: untranslated-text: text used for untranslated keys (default is to output the key \name). But when I dont have translations in my messages.xml, i get something like \"untranslated-text".Actually it should display the key name.I use IBM Websphere 4.0 \with Cocoon 2.0. If someone has any solutions pls tell me. Regards Kavitha Ramesh.
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

i18n

2003-06-24 Thread Kavitha Ramesh
Hi,

I read the following in a documentation:

untranslated-text: text used for untranslated keys (default is to output the key name).

But when I dont have translations in my messages.xml, i get something like "untranslated-text".Actually it should display the key name.I use IBM Websphere 4.0 with Cocoon 2.0.
If someone has any solutions pls tell me.

Regards
Kavitha Ramesh.
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: Struts in Cocoon

2003-04-01 Thread Kavitha Ramesh
Thank you so much,,,
Derek Hohls [EMAIL PROTECTED] wrote:


Have at a look at the wiki page:
http://wiki.cocoondev.org/Wiki.jsp?page=Struts
(a link to integrating the two)

Apart from that, browse through the mail archives;
someone may have picked up this specific point
before. [EMAIL PROTECTED] 01/04/2003 03:16:11 
Hi,
I have a loginpage which runs with cocoon 2.0 and Tomcat 4.1.12.But I have problems in restoring the sessions of the users.So I would like to use Struts for solving the session problems.Now I would like to make the Struts work inside Cocoon without affecting my design using xslt.I would like to implement Struts in Cocoon just for solving the session problems and nothing more.It would be so kind if someone could give me some ideas.
RegardsKavitha.


Do you Yahoo!?Yahoo! Tax Center - File online, calculators, forms, and more-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. Mailscanner thanks transtec Computers for their support. Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more

WebServiceProxygenerator

2003-01-16 Thread Kavitha Ramesh
Hi,

I have a login page which runs under cocoon 2.0.3 and
Tomcat 4.1.12.The login page works with Servlets which
generates xml as output in turn comined with XSLT in
cocoon.Now I would like to send the parameters by POST
and also would like to do some work with sessions.I
read that WebserviceProxyGenerator would do this.But I
am not able to understand the concept clearly and Iam
confused how to start with and how to use it and
implement in my case.I have installed the cocoon 2.1
developers version and it has one webserviceproxy.

If someone could help me I would be very thankful,,,

Regards
Kavitha Ramesh.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: cocoon book [was: pdf problem]

2003-01-07 Thread Kavitha Ramesh
Hi,

I could recommend Professional XSLT Programming from
the  wrox publishers.

Kavitha Ramesh


--- Ines Robbers [EMAIL PROTECTED] wrote:
 Hi,
 
 Many thanks for your reply!
 
 * (and get a more recent book).
 
 Can you recommend one that is suitable for a
 beginner like me with some
 XML and XSLT and no Java knowledge?
 
 Cheers,
 
 Ines
 
 
 
 
 

-
 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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: i18n more!!

2002-11-27 Thread Kavitha Ramesh
hi GD,

If you want to get a good idea about i18n, go to the
welcome page of your cocoon(after cocoon installation,
 go to the url, http://localhost:8080/cocoon), you
have a title Internationalization.Click the link and
explore.Also in your cocoon directory you will have a
folder i18n, explore that too.

In your case you should have messages.xml(for english)
and messages_fr (for french).In the browser go to the
menu Extras-Internet options-Language-Choose French
and bring the French language above all the other
languages and click OK button.Your pages will have all
the messages in French.

Have Fun!

Kavitha.


--- Hong Gia Dinh [EMAIL PROTECTED] wrote:
 I 'm a new user in cocoon, 
 I have the case :
 i have a web site trying to apply cocoon into it.
 i have 2 languages, english and french
 now if in one page i choose a language such as
 'french' i want all next page
 from that on will be in french. how can i do that?
 how can i know the current language i chose?
 can u all tell me?
 cheers
 GD
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Invoking a Servlet directly!!!

2002-11-27 Thread Kavitha Ramesh
Hi,

Normally we invoke a servlet like below:

map:generate
src=http://localhost:8080/cocoon/myservlet{requestQuery};
/

But I would like to invoke the servlet directly like
below:

If the servlet is stored  in a directory
Web-Inf/Classes/Servlet/myservlet.class, then I would
like to invoke as

map:generate src=Servlet.myservlet /

Is this possible?Please help me!

Kavitha



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Hi

2002-11-26 Thread Kavitha Ramesh
Hi Jelle,

Thanks for your valuable information.I tried using
different stylesheets for IE and Netscape in my
pipeline.But I feel this is not a good solution.Is
there something which I could do with
serializers.(ie., xhtml serializer or so,,,Iam not
sure).Please suggest me.Looking forward to hearing
from you.

Kavitha.

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Invoking a Servlet

2002-11-26 Thread Kavitha Ramesh
Hi,

Normally we invoke a servlet in the pipeline as
follows:

map:pipeline match=...
  map:act type=request
map:parameter name=parameters value=true/
map:generate
src=http://my.server.com/path/servlet{requestQuery}/
 
  /map:act
  !-- rest of pipeline to process results --
/map:pipeline

But I would like to call the servlet directly without
invoking the URL.For example,
 map:generate src=servlet{requestQuery}/  

Is this possible?If so how?Help me please,,,

Kavitha Ramesh.



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




cocoon with IE and Netscape

2002-11-21 Thread Kavitha Ramesh
Hi,

I have a problem with my webpages(running with cocoon
2.0) produces different result in Netscape and
Internet Explorer.The position of the pixels in IE and
Netscape(as well as in Mozilla 1.1)  are quite
different.If someone knows the solution please help
me,,,

Kavitha Ramesh.

__
Do you Yahoo!?
Yahoo! Mail Plus – Powerful. Affordable. Sign up now.
http://mailplus.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Problem with sitemap

2002-10-14 Thread Kavitha Ramesh

Hi,

My sitemap is as follows:

map:match pattern=welcome.html 
map:generate src=welcome/welcome.xml/
map:transform src=welcome/{role}.xsl/
map:serialize type=html/
/map:match

In my welcome folder I have author.xsl and
learner.xsl.My xml file has the tag, role.Depending
upon the role the sitemap has to choose the respective
stylesheet and do the transformation.But I get an
error Failed to process the pipeline.I use
Tomcat-4.0-b7 and Cocoon 2.0.If someone knows the
solution please help me,,,

Kavitha

__
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos  More
http://faith.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




xsl question

2002-09-30 Thread Kavitha Ramesh

Hi,

I have an xml file as follows:

user
userid100/userid
/user

My XSL file is as follows:

xsl:template match=user
html
/body

a href=/cocoon/hello?userid=100Menu/a

/body
/html
/xsl:template


Now my xsl file has a static URL.But I need a dynamic
URL.Each and everytime when my userid changes in the
xml file my stylesheet should get the userid from the
xml file.How should my stylesheet look like in that
case?If someoneknows please help me.

Kavitha.


__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




doubt in i18n

2002-09-19 Thread Kavitha Ramesh

Hi,

I want to use supreg;/sup(which is for ®) in
messages_de.xml and messages_en.xml.My messages_en.xml
is as follows:

?xml version=1.0 encoding=UTF-8?
!DOCTYPE html 
 PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN

http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;

catalogue xml:lang=en
xmlns=http://www.w3.org/1999/xhtml;

message key=testHello supreg;/sup Kavitha
/message

/catalogue 

I want the out put as Hello ® Kavitha.But Iam getting
just Hello.

If I use #174; for ® it works,,,But I dont want to
use it,,,
 
If someone knows please help me,,,

Kavitha



__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




using html tag in i18n

2002-09-18 Thread Kavitha Ramesh

Hi,

I have a problem  using sup®/sup(which is for ®
)
in messages_en.xml and messages_de.xml.
I really dont know how to use these tags in
messages.xml.
If someone knows please help me,,,


Kavitha

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: using html tag in i18n

2002-09-18 Thread Kavitha Ramesh

Hi,

Iam sorry,,, In my previous mail I had a small 
mistake,,,


I have a problem  using supreg;/sup(which is for
®
)
in messages_en.xml and messages_de.xml.
I really dont know how to use these tags in
messages.xml.
If someone knows please help me,,,


Kavitha


--- Kavitha Ramesh [EMAIL PROTECTED]
wrote:
 Hi,
 
 I have a problem  using sup®/sup(which is for
 ®
 )
 in messages_en.xml and messages_de.xml.
 I really dont know how to use these tags in
 messages.xml.
 If someone knows please help me,,,
 
 
 Kavitha
 
 __
 Do You Yahoo!?
 Yahoo! Finance - Get real-time stock quotes
 http://finance.yahoo.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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




How to use the method POST?

2002-08-27 Thread kavitha ramesh

Hi,

I have a loginpage and my parameters are now seen in
the URL.ie.,
http://localhost:8080/cocoon/login.html?userID=xxxpasswd=yyy

and now I would like to hide the parameters in the
URL.So I would like to use the method POST in the
stylesheet.But if I use POST, my loginpage doesnt seem
to respond to anything.It just hides the parameters,
but nothing else happens(say when I give the wrong
login, it should display an error message,,,but this
doesnt work,,,).My sitemap is as follows:

map:match pattern=login.html 
map:act type=request
map:parameter name=parameters value=true/
map:generate
src=http://localhost:8080/cocoon/login.jsp{requestQuery};
/
map:transform src=stylesheets/krishna.xsl /
map:transform type=i18n/
/map:act
map:serialize type=html/
/map:match


And my stylesheet is as follows:

form method=post
input type=text name=userID value={@userID} /
input type=password name=passwd
value={@passwd}/
/form

If someone knows please help me,,,

Kavitha




Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Pipeline for session!

2002-08-27 Thread Kavitha Ramesh

Hi,

I have two pages called login.html and welcome.html.My
login.html creates a session when I type my username
and password.This session should be caught by my
welcome.html and should display the username.But my
pipeline is not able to read this session and I do not
know how my pipeline should look like ,,,At the moment
my pipeline is as follows:

map:pipeline
map:match pattern=welcome.html 
map:act type=request
map:parameter name=parameters value=true/
map:generate
src=http://pca6srv02:9083/cocoon/welcome.jsp/
map:transform src=stylesheets/welcome/admin.xsl/
/map:act
map:serialize type=html/
/map:match
/map:pipeline

If someone knows please help me,,,

KAvitha

__
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




how to send the parameter by POST to the servlet?

2002-08-22 Thread kavitha ramesh

Hi,

I would like to send the parameters to a servlet via
the method POST,,,In this case how do my sitemap look
like?

My current sitemap is as follows:

map:pipeline
map:match pattern=login.html 
map:act type=request
map:parameter name=parameters value=true/
map:generate
src=http://pca6srv02:9083/cocoon/login.jsp{requestQuery};
/
map:transform src=stylesheets/krishna.xsl /
map:transform type=i18n/
/map:act
map:serialize type=html/
/map:match
 /map:pipeline

If someone knows please help me,,,

Kavitha Ramesh.


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




how to add a white space in i18n?

2002-08-21 Thread kavitha ramesh

Hi,

I have something like FrauKavitha in the browser.Frau
comes from the messages_de.xml file and kavitha comes
from the main xml file.Iam using i18n and my
messages_de.xml is as follows:

message key=femaleFrau/message

and my xml file is as follows:

namekavitha/name

and my stylesheet combines Frau and kavitha i get
FrauKavitha in the browser.Now I would like to add a
WHITESPACE between Frau and Kavitha.If someone knows
please help me,,,

Kavitha



Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




[SUMMARY]RE: how to add a white space in i18n?

2002-08-21 Thread kavitha ramesh

Hi Konstantin,

I used the following in my stylesheet.I got the space
between Frau and Kavitha.

xsl:text#x20;/xsl:text

Thanks a lot!

Kavitha


 --- Piroumian Konstantin [EMAIL PROTECTED]
wrote:   From: kavitha ramesh
 [mailto:[EMAIL PROTECTED]] 
  
  Hi,
  
  I have something like FrauKavitha in the
 browser.Frau
  comes from the messages_de.xml file and kavitha
 comes
  from the main xml file.Iam using i18n and my
  messages_de.xml is as follows:
  
  message key=femaleFrau/message
  
  and my xml file is as follows:
  
  namekavitha/name
  
  and my stylesheet combines Frau and kavitha i get
  FrauKavitha in the browser.Now I would like to add
 a
  WHITESPACE between Frau and Kavitha.If someone
 knows
  please help me,,,
 
 Again it seems that your question has nothing to do
 with i18n. The problem
 is in your stylesheet that does not place WHITESPACE
 between Frau and
 Kavitha. Try to use nbsp; between the names.
 
 Konstantin
 
  
  Kavitha
  
  
 

__
  __
  Want to sell your car? advertise on Yahoo Autos
 Classifieds. 
  It's Free!!
 visit http://in.autos.yahoo.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:
 [EMAIL PROTECTED]
  For additional commands, e-mail:  
 [EMAIL PROTECTED]
  
 

-
 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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
  


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: how to hand over parameter to an url?

2002-08-21 Thread kavitha ramesh

I guess the following sitemap would work,,,


map:match pattern=*.jsp type=wildcard
 map:generate

src=http://localhost:8080/not-cocoon/mydir/{1}.jsp{requestQuery};
 type=html
 /map:generate   
 map:serialize/
 /map:match 


Kavitha




--- Jens Grote [EMAIL PROTECTED] wrote:  hi,
 
 i have a webpage, where one link opens a new
 webpage. this link is a url
 with a parameter including. 
 
 it seems, that cocoon cut the parameter off. the
 page can not be shown. (the
 parameter is something like a session number.)
 
 my sidemap entry is:
 
 
 map:match pattern=*.jsp type=wildcard
 map:generate
 src=http://localhost:8080/not-cocoon/mydir/{1}.jsp;
 type=html
 /map:generate   
 map:serialize/
 /map:match
 
 the .jsp sides are generated into xml by an other
 servlet. therefore i need
 the whole url. 
 
 can i hand over dynamic parameters?
 
 i tried something like this:
 
 map:parameter name=* value={2}/
 in the generator tag, but it doesn't work.
 
 error message is 'resource not found' strange to
 say. 
 
 thanks and greets
 
 jens
 
 
 
 -- 
 GMX - Die Kommunikationsplattform im Internet.
 http://www.gmx.net
 
 

-
 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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
  


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: JspGenerator error on hello.jsp

2002-08-15 Thread Kavitha Ramesh

Hi Mr.Vikram,

You should place the jasper-compiler.jar in your lib
file.It will work,,,

Kavitha


--- Vikram Rai [EMAIL PROTECTED] wrote:
 I'm running cocoon 2.0.3 on Tomcat 3.3.1 (Linux
 7.2).  I've been trying to run the hello.jsp example
 for the jsp as below;
 
 http://localhost:8080/cocoon/jsp/hello
 http://127.0.0.1:8080/cocoon/jsp/hello  
 
 I get the following error:
 
   The org.apache.cocoon.sitemap_xmap notifies that
 org.apache.cocoon.ProcessinException says:
 
 ServletException in JspGenerator.generate();
 
 More precisely
 

org.apache.cocoon.ProcessinException:ServletException
 in JspGenerator.generate();
 
 
 
 The stack trace is as follows:
  
 
 org.apache.cocoon.ProcessingException:
 ServletException in JspGenerator.generate()
   at

org.apache.cocoon.generation.JspGenerator.generate(JspGenerator.java:133)
   at

org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
   at

org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:399)
 
   at

org.apache.cocoon.www.sitemap_xmap.matchN10780(/root/jakarta-tomcat-3.3.1/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:9298)
 
   at

org.apache.cocoon.www.sitemap_xmap.process(/root/jakarta-tomcat-3.3.1/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3639)
 
   at

org.apache.cocoon.www.sitemap_xmap.process(/root/jakarta-tomcat-3.3.1/work/DEFAULT/cocoon/cocoon-files/org/apache/cocoon/www/sitemap_xmap.java:3107)
   at

org.apache.cocoon.sitemap.Handler.process(Handler.java:224)
   at

org.apache.cocoon.sitemap.Manager.invoke(Manager.java:179)
   at

org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:154)
   at
 org.apache.cocoon.Cocoon.process(Cocoon.java:575)
   at

org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:999)
   at

javax.servlet.http.HttpServlet.service(HttpServlet.java)
   at

org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574)
   at

org.apache.tomcat.core.Handler.invoke(Handler.java:322)
   at

org.apache.tomcat.core.Handler.service(Handler.java:235)
   at

org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485)
   at

org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917)
   at

org.apache.tomcat.core.ContextManager.service(ContextManager.java:833)
   at

org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Http10Interceptor.java:176)
   at

org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494)
   at

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516)
   at java.lang.Thread.run(Thread.java:479)
 
 
 Can somebody please throw some light on
 this.
 
 
 Vikram rai.
 
 
 


__
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Parameter not accepted from a servlet

2002-08-15 Thread kavitha ramesh

Hi Dr.Skip,

You have peviously solved my problem of combining a
stylesheet with an xml file generated from a
servlet.Now I have someother problem.

My main sitemap is as follows:

map:pipeline
map:match pattern=login.html 
map:act type=request
map:parameter name=parameters value=true /
map:generate src=http://localhost:8080/cocoon/login;
/
map:transform src=stylesheets/krishna.xsl /
/map:act
map:serialize type=html /
/map:match
/map:pipeline

login is a servlet and this servlet generates an xml
file.

1)If i type http://localhost:8080/cocoon/login in the
url it generates an xml file.When this xml file is
transformed with my stylesheet krishna.xsl and I get a
loginpage.


2)If i type
http://localhost:8080/cocoon/login?userID=kavitha
passwd=ramesh, in the url it generates another xml
file.When this xml file is transformed with my
stylesheet krishna.xsl and I get a loginpage with an
error message.

Now when I type
http://localhost:8080/cocoon/login.html, Iam able to
get the loginpage.

when I type http://localhost:8080/cocoon/login.html?
userID=kavithapasswd=ramesh, Iam NOT able to get the
error message in the loginpage.


Iam stuck,,,Please help me,,,

Kavitha.
















Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Handling the parameter,,,,,

2002-08-15 Thread kavitha ramesh

Hi Dr.Skip,

In my previous mail I have made a small mistake with
my sitemap.Actually my sitemap looks as below:

map:match pattern=login.html 
map:act type=request
map:parameter name=parameters value=true /
map:generate
src=http://localhost:8080/cocoon/loginp{requestQuery};
/
map:transform src=stylesheets/krishna.xsl /
/map:act
map:serialize type=html/
/map:match

Thanking you in advance,,

Kavitha



Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




stylesheet for loginpage

2002-08-13 Thread kavitha ramesh

Hi,

I have a loginpage in xml.And I would like to check
the following condition:

when a wrong user tries to login for the first name it
should give a error message, login failed.Try
again!.The samething should happen when the wrong
user tries to login for the second time.

If the wrong user tries to login for the third time my
loginpage should just display a message, Access
Denied and it should hide the textfields for username
and password.How will my stylesheet look like?

My xml file is as follows:

root
 error times=oncelogin failed.Try again!/error
 error times=twicelogin failed.Try
again!/error
 error times=thriceAccess Denied!/error
/root

If someone has idea how to write the stylesheet for
the above, I would be very thankful,,,

Kavitha.



Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




placing my directory outside cocoon

2002-08-09 Thread kavitha ramesh

Hi,

I have an application called mts (which has html,
jsp's and servlets ) which has its own Web-Inf and
web.xml, where the servlets are mapped.The directory
mts is placed outside cocoon.Now the servlets inside
mts generates an xml file and I would like to use xslt
with cocoon.In this case I dont want to place the
servlets(.class files) inside cocoon Web-Inf.I want
them to stay in mts Web-Inf.

And I just want my xml generated from the servlets to
be transformed using xsl in cocoon and my entire
application lies outside cocoon.

For my case how would the pipeline look like?

Please help me,,,

Kavitha Ramesh.


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




(SUMMARY)Re: Servlet generating an XML---How to write the pipeline?

2002-08-09 Thread kavitha ramesh

Hi Skip,

It works,,,Thanks a lot!!!

Kavitha


 


--- Skip Carter [EMAIL PROTECTED] wrote:  
 Kavitha,
 
  I have the class, Servlet.class and I have placed
 it
  in the Web-Inf folder.Now my main sitemap is as
  follows:
  
  map:match pattern=Servlet/*(what should be
 there
  in the Servlet folder?)
  map:act type=request
  map:parameter name=parameters value=true/
  map:generate src=  /(what should be the
 source?)
  map:transform src=stylesheets/servlet.xsl/
  /map:act
  map:serialize type=html/
  /map:match 
  
  My servlet generates an xml file as an output
 stream.
  
  and is the following URL be used to see the
 result?
  
  http://localhost:8080/cocoon/Servlet
 
 Ok, let me try to help by giving a step-by-step
 description:
 
 your servlet class file is located in:  
 WEB-INF/classes/
 
 web.xml has:
 
   servlet
 servlet-nameHello/servlet-name!--
 the name we will use to 
 refer to the servlet --
 servlet-classHelloXML/servlet-class   !--
 the actual name of the 
 Servlet class --
   /servlet
 
   servlet-mapping
 servlet-nameHello/servlet-name
 url-pattern/internal/Hello/url-pattern   
 !-- the URL path to the XML 
 servlet  --
   /servlet-mapping
 
 
 
 sitemap.xmap has:
 
map:match pattern=HelloWorld
 !-- the PUBLIC name of 
 the servlet --
map:act type=request
map:parameter name=parameters
 value=true/
 !-- here we call the servlet that
 generates XML --
map:generate 
 src=http://localhost:8080/cocoon/internal/Hello{
 requestQuery} /
map:transform
 src=stylesheets/hello.xsl /
/map:act
map:serialize type=html/
   /map:match
 
 
 so that the Web request: 
 http://localhost:8080/cocoon/HelloWorld   should 
 invoke this pattern
 
 (if you know to type:
 http://localhost:8080/cocoon/internal/Hello   you
 will 
 get the XML output).
 
 
 Hope that is more clear for you.
 
 
 -- 
  Dr. Everett (Skip) Carter  Phone: 831-641-0645
 FAX:  831-641-0647
  Taygeta Scientific Inc.INTERNET:
 [EMAIL PROTECTED]
  1340 Munras Ave., Suite 314WWW:
 http://www.taygeta.com
  Monterey, CA. 93940
 
 
 
 
 
 
 
 
 
 
 
 

-
 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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
  


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Servlet generating an XML---How to write the pipeline?

2002-08-02 Thread kavitha ramesh

Hi Skip,

I have the class, Servlet.class and I have placed it
in the Web-Inf folder.Now my main sitemap is as
follows:

map:match pattern=Servlet/*(what should be there
in the Servlet folder?)
map:act type=request
map:parameter name=parameters value=true/
map:generate src=  /(what should be the source?)
map:transform src=stylesheets/servlet.xsl/
/map:act
map:serialize type=html/
/map:match 

My servlet generates an xml file as an output stream.

and is the following URL be used to see the result?

http://localhost:8080/cocoon/Servlet

Kavitha




I dont have a folder called

--- Skip Carter [EMAIL PROTECTED] wrote:  
  I have a servlet which generates an xml file which
 in
  turn should be transformed using xslt.How do I
 write
  the pipeline for the same?
  
  Say the name of the servlet is check.class(where
  should I place the class, in web-inf?), the name
 of
  the xml file generated by the pipeline is test.xml
 and
  the stylesheet used is test.xsl.How should my
 pipeline
  look like?
 
   I handle this with any entry like the following in
 the main pipeline in 
 sitemap.xmap:
 
 
   !-- chain a servlet from tomcat --
   !-- note: using the request action only works
 for GET not for POST --
map:match pattern=Servlet/*
map:act type=request
map:parameter name=parameters
 value=true/
map:generate
 src=http://myserver.com:8080{requestURI}{requestQ
 uery} /
map:transform
 src=stylesheets/servlets.xsl /
/map:act
map:serialize type=html/
   /map:match
 
 
   (If somebody has a good solution for POST I'd be
 interested in seeing it)
 
   My servlets are handled directly by tomcat (which
 is listening on port 
 8080), that way I can easily control
   access to the raw servlet.  But you can have
 cocoon handle the servlet 
 instead by making the proper
   entries in the cocoon WEB-INF/web.xml file, for
 example:
 
!-- after the normal cocoon servlet entry --
servlet
   servlet-namecheck/servlet-name
   servlet-classcheck/servlet-class
/servlet
 
   !-- before the normal cocoon servlet-mapping
 entry --
   servlet-mapping
 servlet-namecheck/servlet-name
 url-pattern/check/url-pattern
   /servlet-mapping
   
 
   Your classes can go in WEB-INF/classes
 
 
 
 
 
 Skip
 
 
 
 -- 
  Dr. Everett (Skip) Carter  Phone: 831-641-0645
 FAX:  831-641-0647
  Taygeta Scientific Inc.INTERNET:
 [EMAIL PROTECTED]
  1340 Munras Ave., Suite 314WWW:
 http://www.taygeta.com
  Monterey, CA. 93940
 
 
 
 
 
 
 
 
 
 
 
 

-
 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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
  


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Servlet generating an XML---How to write the pipeline?

2002-08-01 Thread kavitha ramesh

Hi,

I have a servlet which generates an xml file which in
turn should be transformed using xslt.How do I write
the pipeline for the same?

Say the name of the servlet is check.class(where
should I place the class, in web-inf?), the name of
the xml file generated by the pipeline is test.xml and
the stylesheet used is test.xsl.How should my pipeline
look like?

If someone knows please write a reply,,,

Kavitha



Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Problem in Installing Cocoon in IBM Websphere

2002-07-30 Thread kavitha ramesh
Hi,

I have installed Cocoon 2.0 in the IBM Websphere 4.0.3 and my JSP Generator doesnt work.If someone knows please help me,,,

Kavitha.

Sell you car, by placing a classified ad on Yahoo India Autos . It's Free!! 


RE: Running Cocoon 2.0 in IBM Websphere

2002-07-29 Thread kavitha ramesh

Thank you!

Kavitha 

--- Vadim Gritsenko [EMAIL PROTECTED]
wrote: 
http://xml.apache.org/cocoon/installing/index.html
 
 
 Vadim
 
 -Original Message-
 From: kavitha ramesh
 [mailto:[EMAIL PROTECTED]] 
 Sent: Sunday, July 28, 2002 4:50 AM
 To: [EMAIL PROTECTED]
 Subject: Running Cocoon 2.0 in IBM Websphere
 
 Hi,
  
 I would like to run Cocoon 2.0 in IBM Websphere
 server 4.0.Where can I
 find the installation instructions?If anyone had
 already done the same
 could you please help me?
  
 Regards
 Kavitha.
 
   Sell you car, by placing a classified ad on Yahoo
 India Autos . It's
 Free!!   
 
 

-
 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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
  


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Running Cocoon 2.0 in IBM Websphere

2002-07-28 Thread kavitha ramesh
Hi,

I would like to run Cocoon 2.0 in IBM Websphere server 4.0.Where can I find the installation instructions?If anyone had already done the same could you please help me?

Regards
Kavitha.

Sell you car, by placing a classified ad on Yahoo India Autos . It's Free!! 


using different stylesheets for different xml files

2002-07-25 Thread kavitha ramesh

Hi,

I have two xml files and I would like to use two
different stylesheets for that.How do i do it?

For example I have two xml files inside the folder
name docs:

login1.xml
login2.xml

and I have two stylesheets:

login1.xsl
login2.xsl

and for login1.xml I would like to use the stylesheet
login1.xsl and for login2.xml I would like to use
login2.xsl.How do the sitemap.xmap file look like for
the above?

Please help me,,,

Kavitha


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




RE: using different stylesheets for different xml files

2002-07-25 Thread kavitha ramesh

Dear Mr.Oliver,

It works and thank you so much for your valuable
information.

Kavitha 

--- ROSSEL Olivier [EMAIL PROTECTED] wrote:
 Here is a sitemap for catch-all XML management.
 
 map:match pattern=*.xml
  map:generate src={1}.xml/
  map:transform src={1}.xsl/
  map:serialize/
 /map:match
 
 The sitemap resolver receives the URL.
 It parses sequentially the sitemap file,
 reading only what is inside matching map:match.
 The map:match above will be read for any URL that
 ends with the string
 '.xml'.
 The sitemap resolver read the map:generate...
 It sees that it has to resolve the variable {1}
 (which contains the string matched by the first
 wildcard of pattern=...)
 It resolves it either to 'login1' or 'login2' and
 instanciates
 the generator that will generate SAX events by
 reading the corresponding
 file.
 
 Idem for the map:tranform
 
 Then the sitemap resolver reads a (HTML by default)
 serializer.
 It instanciates the HTMLSerializer.
 
 Then it stops reading the file (it ALAYS stops
 reading the file
 as soon as it meets a map:serialize).
 
 The pipeline is ready.
 
 Another approach is this one:
 
 map:match pattern=login1.xml
  map:generate src=login1.xml/
  map:transform src=login1.xsl/
  map:serialize/
 /map:match
 
 map:match pattern=login2.xml
  map:generate src=login2.xml/
  map:transform src=login2.xsl/
  map:serialize/
 /map:match
 
 How all that works is the same as above.
 
 
 
 
 
  -Message d'origine-
  De: kavitha ramesh
 [mailto:[EMAIL PROTECTED]]
  Date: jeudi 25 juillet 2002 15:02
  À: [EMAIL PROTECTED]
  Objet: using different stylesheets for different
 xml files
  
  
  Hi,
  
  I have two xml files and I would like to use two
  different stylesheets for that.How do i do it?
  
  For example I have two xml files inside the folder
  name docs:
  
  login1.xml
  login2.xml
  
  and I have two stylesheets:
  
  login1.xsl
  login2.xsl
  
  and for login1.xml I would like to use the
 stylesheet
  login1.xsl and for login2.xml I would like to use
  login2.xsl.How do the sitemap.xmap file look like
 for
  the above?
  
  Please help me,,,
  
  Kavitha
  
 

__
  __
  Want to sell your car? advertise on Yahoo Autos
 Classifieds. 
  It's Free!!
 visit http://in.autos.yahoo.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:
 [EMAIL PROTECTED]
  For additional commands, e-mail:  
 [EMAIL PROTECTED]
  
 

-
 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:
 [EMAIL PROTECTED]
 For additional commands, e-mail:  
 [EMAIL PROTECTED]
  


Want to sell your car? advertise on Yahoo Autos Classifieds. It's Free!!
   visit http://in.autos.yahoo.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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: RE: RE: Re: mixing xml and xsl with i18n

2002-07-19 Thread kavitha ramesh

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:[EMAIL PROTECTED]]
 
  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:[EMAIL PROTECTED]]
   
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:textxsl:value-of 
select=@sex//i18n:text
 xsl:text/ xsl:value-of select=name/
   /xsl:template

/xsl:stylesheet

in catalogue_en.xml:

message key=MaleMr./message
message key=FemaleMrs./message

in catalogue_de.xml:

message key=MaleFrau/message
message key=FemaleHerr/message

Regards,

Joerg


kavitha ramesh wrote:

Hi,

I have an xml file which is as follows:

simple.xml
--
menu
person
gender sex=Male
nameRamesh/name
/gender
/person
person
gender sex=Female
nameKavitha/name
/gender
/person
person
/menu

and my xsl file is as follows:

simple.xsl
--

i18n:texttext1/i18n:text
i18n:texttext2/i18n:text


and my messages for i18n are as follows:

messages_en
---
message key=text1Mr/message
message key=text2Mrs/message

messages_de
---
message key=text1Herrn/message
message key=text2Frau/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
[EMAIL PROTECTED]
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:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED

Re: Re: mixing xml and xsl with i18n

2002-07-19 Thread kavitha ramesh

Hi Jeorg,

I tried with the following sitemap:
map:match pattern=jsp/*
map:generate type=jsp src=/concatenate/jsp/{1}.jsp/
map:serialize type=xml/
/map:match

I got just the names, Kavitha, Ramesh in the browser.

Kavitha

On Thu, 18 Jul 2002 Joerg Heinicke wrote :
  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

Hello Kavitha,

can you shorten the pipeline and see what the output is?

I would start with only the JSP generator and a map:serialize 
type=xml/.

If it seems to be ok add the conc.xsl and so on.

Regards,

Joerg

--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
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: 
[EMAIL PROTECTED]
For additional commands, e-mail:   
[EMAIL PROTECTED]



-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Re: mixing xml and xsl with i18n

2002-07-19 Thread kavitha ramesh

Hi Sidharth,
It is even possible withouti18n:text in the xml file.Just using 
the namespace in the xsl and by running the transformer, it 
works,,,

Kavitha



On Fri, 19 Jul 2002 [EMAIL PROTECTED] wrote :

Hi
I think you will have to keep the I18n :Text  for Mr and Ms in 
XML file
only then it will work
I don't think that u can keep the same in XSL files

Regards
Sidharth Ghai
Vmoksha Technologies
VI th Floor, Corporate Towers 'C'
Diamond District
Kodihally
Banglore



 kavitha  ramesh
 kaviramesh77@redif   To: 
[EMAIL PROTECTED]
 fmail.comcc:
   Subject: 
mixing xml and xsl  with i18n
 07/18/2002 07:03 PM
 Please respond to
 cocoon-users






Hi,

I have an xml file which is as follows:

simple.xml
--
menu
person
gender sex=Male
nameRamesh/name
/gender
/person
person
gender sex=Female
nameKavitha/name
/gender
/person
person
/menu

and my xsl file is as follows:

simple.xsl
--

i18n:texttext1/i18n:text
i18n:texttext2/i18n:text


and my messages for i18n are as follows:

messages_en
---
message key=text1Mr/message
message key=text2Mrs/message

messages_de
---
message key=text1Herrn/message
message key=text2Frau/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.

_
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: 
[EMAIL PROTECTED]
For additional commands, e-mail:   
[EMAIL PROTECTED]






-
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: 
[EMAIL PROTECTED]
For additional commands, e-mail:   
[EMAIL PROTECTED]



-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Re: Re: mixing xml and xsl with i18n

2002-07-19 Thread kavitha ramesh

Hi Jeorg,

Now my xsl is like this:

conc.xsl


xsl:for-each select=menu/person
tr
tdi18n:textMale/i18n:textxsl:value-of 
select=gender/name//td
/tr
/xsl:for-each


My xml file is as follows:

conc.xml

?xml version=1.0 encoding=UTF-8?
test
menu
  person
   gender sex=Male
nameRavi/name
   /gender
  /person

  person
   gender sex=Female
nameVeena/name
   /gender
  /person
/menu

menu
item
link
hrefconc.xml?locale=en_US/href
titleEnglish /title
/link
/item
item
link
hrefconc.xml?locale=de_DE/href
titleGerman /title
/link
/item
/menu
/test

and my sitemap is as follows:

map:match pattern=*.xml
map:generate src={1}.xml/
map:transform src=conc.xsl/
map:transform type=i18n/
map:serialize/
/map:match

and in the browser Iam getting the result as

Mr.Ravi
Mr.Veena

In the xsl file if I do the following, nothing is displayed,,,

i18n:textxsl:value-of select=@sex//i18n:textxsl:value-of 
select=gender/name/

Please suggest me how to write the stylesheet for displaying,

Mr.Ravi
Mrs.Veena


Regards
Kavitha









-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Re: mixing xml and xsl with i18n

2002-07-19 Thread kavitha ramesh

Hi Jeorg,

It works,,,

Thanks a lot,,,

Kavitha.



On Fri, 19 Jul 2002 Joerg Heinicke wrote :
Hello Kavitha,

as I see you have a working version:

  tdi18n:textMale/i18n:textxsl:value-of 
select=gender/name//td

and a non-working version

  i18n:textxsl:value-of 
select=@sex//i18n:textxsl:value-of
  select=gender/name/

The problem is really easy, it's only an XPath problem. The @sex 
attribute as not on the person element, but on the gender 
element. SO you either change the XML:

person sex=Male
   nameRavi/name
/person

or in the XSL:

xsl:value-of select=gender/@sex/

I hope it works now,

Joerg


kavitha ramesh wrote:
Hi Jeorg,

Now my xsl is like this:

conc.xsl


xsl:for-each select=menu/person
tr
tdi18n:textMale/i18n:textxsl:value-of 
select=gender/name//td
/tr
/xsl:for-each


My xml file is as follows:

conc.xml

?xml version=1.0 encoding=UTF-8?
test
menu
  person
   gender sex=Male
nameRavi/name
   /gender
  /person

  person
   gender sex=Female
nameVeena/name
   /gender
  /person
/menu

menu
item
link
hrefconc.xml?locale=en_US/href
titleEnglish /title
/link
/item
item
link
hrefconc.xml?locale=de_DE/href
titleGerman /title
/link
/item
/menu
/test

and my sitemap is as follows:

map:match pattern=*.xml
map:generate src={1}.xml/
map:transform src=conc.xsl/
map:transform type=i18n/
map:serialize/
/map:match

and in the browser Iam getting the result as

Mr.Ravi
Mr.Veena

In the xsl file if I do the following, nothing is displayed,,,

i18n:textxsl:value-of 
select=@sex//i18n:textxsl:value-of 
select=gender/name/

Please suggest me how to write the stylesheet for displaying,

Mr.Ravi
Mrs.Veena


Regards
Kavitha


--
System Development
VIRBUS AG
Fon  +49(0)341-979-7419
Fax  +49(0)341-979-7409
[EMAIL PROTECTED]
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: 
[EMAIL PROTECTED]
For additional commands, e-mail:   
[EMAIL PROTECTED]



-
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




mixing xml and xsl with i18n

2002-07-18 Thread kavitha ramesh

Hi,

I have an xml file which is as follows:

simple.xml
--
menu
person
gender sex=Male
nameRamesh/name
/gender
/person
person
gender sex=Female
nameKavitha/name
/gender
/person
person
/menu

and my xsl file is as follows:

simple.xsl
--

i18n:texttext1/i18n:text
i18n:texttext2/i18n:text


and my messages for i18n are as follows:

messages_en
---
message key=text1Mr/message
message key=text2Mrs/message

messages_de
---
message key=text1Herrn/message
message key=text2Frau/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.

_
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: Re: mixing xml and xsl with i18n

2002-07-18 Thread kavitha ramesh


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:textxsl:value-of select=@sex//i18n:text
 xsl:text/ xsl:value-of select=name/
   /xsl:template

/xsl:stylesheet

in catalogue_en.xml:

message key=MaleMr./message
message key=FemaleMrs./message

in catalogue_de.xml:

message key=MaleFrau/message
message key=FemaleHerr/message

Regards,

Joerg


kavitha ramesh wrote:
Hi,

I have an xml file which is as follows:

simple.xml
--
menu
person
gender sex=Male
nameRamesh/name
/gender
/person
person
gender sex=Female
nameKavitha/name
/gender
/person
person
/menu

and my xsl file is as follows:

simple.xsl
--

i18n:texttext1/i18n:text
i18n:texttext2/i18n:text


and my messages for i18n are as follows:

messages_en
---
message key=text1Mr/message
message key=text2Mrs/message

messages_de
---
message key=text1Herrn/message
message key=text2Frau/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
[EMAIL PROTECTED]
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: 
[EMAIL PROTECTED]
For additional commands, e-mail:   
[EMAIL PROTECTED]


_
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: RE: Re: mixing xml and xsl with i18n

2002-07-18 Thread kavitha ramesh


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

2.I use JSP since I dont have much knowledge in XSP.

3.As per your suggestion I ran the transformer once in the 
sitemap.But still in the browser, nothing is displayed,,,

Kavitha.

On Thu, 18 Jul 2002 Piroumian Konstantin wrote :
  From: kavitha ramesh [mailto:[EMAIL PROTECTED]]
 
  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:textxsl:value-of select=@sex//i18n:text
   xsl:text/ xsl:value-of select=name/
 /xsl:template
  
  /xsl:stylesheet
  
  in catalogue_en.xml:
  
  message key=MaleMr./message
  message key=FemaleMrs./message
  
  in catalogue_de.xml:
  
  message key=MaleFrau/message
  message key=FemaleHerr/message
  
  Regards,
  
  Joerg
  
  
  kavitha ramesh wrote:
  
  Hi,
  
  I have an xml file which is as follows:
  
  simple.xml
  --
  menu
  person
  gender sex=Male
  nameRamesh/name
  /gender
  /person
  person
  gender sex=Female
  nameKavitha/name
  /gender
  /person
  person
  /menu
  
  and my xsl file is as follows:
  
  simple.xsl
  --
  
  i18n:texttext1/i18n:text
  i18n:texttext2/i18n:text
  
  
  and my messages for i18n are as follows:
  
  messages_en
  ---
  message key=text1Mr/message
  message key=text2Mrs/message
  
  messages_de
  ---
  message key=text1Herrn/message
  message key=text2Frau/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
  [EMAIL PROTECTED]
  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:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
  _
  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: 
[EMAIL PROTECTED]
  For additional commands, e-mail:   
[EMAIL PROTECTED]
 

-
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: 
[EMAIL PROTECTED]
For additional commands, e-mail:   
[EMAIL PROTECTED]


_
Click below  to experience Aishwarya Rai's beauty secrets. New 
International Lux Skincare - It's not just soap, It's

Re: Re: using i18n in xsl

2002-07-17 Thread kavitha ramesh


Hi,

I got the solution from Mr.Konstantin.I should run the i18n 
transformer for xsl in the sitemap.The xsl file would look like,

xsl:template match=title
  i18n:texttitletext/i18n:text
  /xsl:template

And the namespace should be added in the xsl file.

Kavitha



On Wed, 17 Jul 2002 Albert Cervera Areny wrote :
I'm quite new to cocoon but I've been having trouble with things 
like
that. The thing is that you should process the XSL file, and 
after that,
apply it to the XML one.
May be it doesn't work but you could try to use cocoon://file.xsl 
instead
of file.xsl in the transform call. transform 
src=cocoon://file.xsl/
And file.xsl should be processed with a pipeline which would 
apply the
i18n. I'm not sure though if it is possible to make this kind of 
call
(cocoon://) inside the src parameter.Try it, and please let us 
know whether it worked or not.

  Hi,
 
  I would like to use the i18n tags inside an xsl file.Is it
  possible?If so how do I use it?
  For example, I have the following content inside an xml 
file:
 
  title
  i18n:texttitletext/i18n:text
  /title
 
  How do I use the same thing inside an xsl file?I dont want 
any
  contents inside my xml file.But everything should be inside an 
xsl
  file,,,Please help me,,,
 
  Kavitha
  _
  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: 
[EMAIL PROTECTED]
  For additional commands, e-mail:   
[EMAIL PROTECTED]


--
Albert Cervera Areny
Dept. Inform?tica Sedifa, S.L.



-
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: 
[EMAIL PROTECTED]
For additional commands, e-mail:   
[EMAIL PROTECTED]


_
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




SUMMARY(using i18n tags in xsl)

2002-07-17 Thread kavitha ramesh

Question:How to use the i18n tags in an xsl file instead of using 
it in an xml file?

Answer: Run the i18n transformer after xslt in the sitemap and 
declare the i18n namespace in your stylesheet.

Example:

file.xml

title
/title


file.xsl

?xml version=1.0 encoding=UTF-8?
xsl:stylesheet version=1.0 
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
xmlns:i18n=http://apache.org/cocoon/i18n/2.0;

html
.
.
/html

xsl:template match=title
i18n:textwelcometext/i18n:text
/xsl:template

/xsl:stylesheet

messages_de.xml

?xml version=1.0 encoding=UTF-8?
catalogue xml:lang=en
message key=welcometextGuten Tag!/message
/catalogue

messages_en.xml

?xml version=1.0 encoding=UTF-8?
catalogue xml:lang=en
message key=welcometextGoodDay!/message
/catalogue



sitemap.xmap

map:match pattern=xml/*
map:generate src={1}.xml/
map:transform src=file.xsl/
map:transform type=i18n/
map:serialize type=html/
/map:match

Kavitha Ramesh
_
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




using i18n in xsl

2002-07-16 Thread kavitha ramesh

Hi,

I would like to use the i18n tags inside an xsl file.Is it 
possible?If so how do I use it?
For example, I have the following content inside an xml file:

title
i18n:texttitletext/i18n:text
/title

How do I use the same thing inside an xsl file?I dont want any 
contents inside my xml file.But everything should be inside an xsl 
file,,,Please help me,,,

Kavitha
_
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




i18n

2002-07-08 Thread kavitha ramesh

Hi,

Iam working with i18n in cocoon.I have a page which displays 2 
languages English and German.If I go to the Internet Option and 
change the language to arabic , Iam getting an error Unable to 
locate resources:message.Now I would like to set the default 
language as English, whatever language I choose,,How to do 
that?Please help me,,,

Kavitha
_
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




It works,,,

2002-07-08 Thread kavitha ramesh

Hi,

ya,I added a file messages.xml and now it works,,,Thank you so 
much,,,

Kavitha
_
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: RE: RE: Problem with jsp in i18n

2002-07-05 Thread kavitha ramesh


Hi Konstantin,

I used the sitemap using the transformer.But when I run it  , iam 
getting  the page with the title as untranslatedtext.It is not 
able to dispay the messages from messages_en.xml and 
messages_de.xml.Please help me,,,

Kavitha.





On Fri, 05 Jul 2002 Piroumian Konstantin wrote :
  From: kavitha ramesh [mailto:[EMAIL PROTECTED]]
 
  Hi Konstantin,
 
  Thanks for your mail.It is only another extension and Iam 
not
  using any JSP Generator.I use Cocoon 2.0.I have setup my 
sitemap
  as follows:
 
  map:match pattern=jsp/*
  map:generate type=jsp src=/language/jsp/{1}.jsp/

   map:transform type=i18n /

  map:transform src=simple.xsl/
  map:serialize type=html/
  /map:match

Hope the above solves your problem.

Konstantin

 
  My directory structure is like this:
 
  Language--Name of the Directory
  *jsp
 *simple.jsp
  *translations
 * messages_en.xml
 * messages_de.xml
  *sitemap.xmap
  *simple.xml
  *simple.xsl
 
  Kavitha
 
  On Fri, 05 Jul 2002 Piroumian Konstantin wrote :
From: kavitha ramesh 
[mailto:[EMAIL PROTECTED]]
   
   
Hi,
   
Iam working with i18n in Cocoon.And I have a file called
simple.xml which displays a title in English and 
German.When
  I
converted the simple.xml to a simple.jsp only the front 
page
  is
displayed.But Iam not able to display it in English and
German.Here are the files, simple.jsp, messages_en.xml 
and
messages_de.xml:
  
  Why are you using *.jsp: is it only another extension or you 
are
  using the
  JspGenerator with it? Did you setup your sitemap correctly? 
Look
  for 'i18n'
  in Cocoon logs to see if the i18n transformer was called.
  
  What is the version of your Cocoon?
  
  Konstantin
  
   
simple.jsp
___
   
?xml version=1.0 encoding=UTF-8?
root xmlns:i18n=http://apache.org/cocoon/i18n/2.0;
title
i18n:texttitlemessage/i18n:text
/title
menu
item
link
hrefsimple.jsp?locale=en_US/href
titleEnglish /title
/link
/item
item
link
hrefsimple.jsp?locale=de_DE/href
titleGerman /title
/link
/item
item
link
hrefsimple.jsp?locale=hi_IN/href
titleHindi /title
/link
/item
/menu
/root
   
messages_en.xml
___
   
?xml version=1.0 encoding=UTF-8?
!-- English message catalogue file for cocoon2 sample
  webapp
--
catalogue xml:lang=en
message key=titletextGoood Day!/message
/catalogue
   
messages_de.xml
___
   
?xml version=1.0 encoding=UTF-8?
!-- German message catalogue file for cocoon2 sample 
webapp
  --
catalogue xml:lang=de
message key=titletextGuten Tag!/message
/catalogue
   
If someone knows please help me!
   
Kavitha.
   

_
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:
  [EMAIL PROTECTED]
For additional commands, e-mail:
  [EMAIL PROTECTED]
   
  
  
 -
  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:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
  
-
  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: 
[EMAIL PROTECTED]
  For additional commands, e-mail:   
[EMAIL PROTECTED]
 

-
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: 
[EMAIL PROTECTED]
For additional commands, e-mail:   
[EMAIL PROTECTED]


_
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: RE: RE: Problem with jsp in i18n

2002-07-05 Thread kavitha ramesh


Hi Konstantin,

I used the sitemap using the transformer.But when I run it  , iam 
getting  the page with the title as untranslatedtext.It is not 
able to dispay the messages from messages_en.xml and 
messages_de.xml.Please help me,,,

Kavitha.





On Fri, 05 Jul 2002 Piroumian Konstantin wrote :
  From: kavitha ramesh [mailto:[EMAIL PROTECTED]]
 
  Hi Konstantin,
 
  Thanks for your mail.It is only another extension and Iam 
not
  using any JSP Generator.I use Cocoon 2.0.I have setup my 
sitemap
  as follows:
 
  map:match pattern=jsp/*
  map:generate type=jsp src=/language/jsp/{1}.jsp/

   map:transform type=i18n /

  map:transform src=simple.xsl/
  map:serialize type=html/
  /map:match

Hope the above solves your problem.

Konstantin

 
  My directory structure is like this:
 
  Language--Name of the Directory
  *jsp
 *simple.jsp
  *translations
 * messages_en.xml
 * messages_de.xml
  *sitemap.xmap
  *simple.xml
  *simple.xsl
 
  Kavitha
 
  On Fri, 05 Jul 2002 Piroumian Konstantin wrote :
From: kavitha ramesh 
[mailto:[EMAIL PROTECTED]]
   
   
Hi,
   
Iam working with i18n in Cocoon.And I have a file called
simple.xml which displays a title in English and 
German.When
  I
converted the simple.xml to a simple.jsp only the front 
page
  is
displayed.But Iam not able to display it in English and
German.Here are the files, simple.jsp, messages_en.xml 
and
messages_de.xml:
  
  Why are you using *.jsp: is it only another extension or you 
are
  using the
  JspGenerator with it? Did you setup your sitemap correctly? 
Look
  for 'i18n'
  in Cocoon logs to see if the i18n transformer was called.
  
  What is the version of your Cocoon?
  
  Konstantin
  
   
simple.jsp
___
   
?xml version=1.0 encoding=UTF-8?
root xmlns:i18n=http://apache.org/cocoon/i18n/2.0;
title
i18n:texttitlemessage/i18n:text
/title
menu
item
link
hrefsimple.jsp?locale=en_US/href
titleEnglish /title
/link
/item
item
link
hrefsimple.jsp?locale=de_DE/href
titleGerman /title
/link
/item
item
link
hrefsimple.jsp?locale=hi_IN/href
titleHindi /title
/link
/item
/menu
/root
   
messages_en.xml
___
   
?xml version=1.0 encoding=UTF-8?
!-- English message catalogue file for cocoon2 sample
  webapp
--
catalogue xml:lang=en
message key=titletextGoood Day!/message
/catalogue
   
messages_de.xml
___
   
?xml version=1.0 encoding=UTF-8?
!-- German message catalogue file for cocoon2 sample 
webapp
  --
catalogue xml:lang=de
message key=titletextGuten Tag!/message
/catalogue
   
If someone knows please help me!
   
Kavitha.
   

_
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:
  [EMAIL PROTECTED]
For additional commands, e-mail:
  [EMAIL PROTECTED]
   
  
  
 -
  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:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
  
-
  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: 
[EMAIL PROTECTED]
  For additional commands, e-mail:   
[EMAIL PROTECTED]
 

-
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: 
[EMAIL PROTECTED]
For additional commands, e-mail:   
[EMAIL PROTECTED]


_
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Re: RE: RE: Problem with jsp in i18n

2002-07-05 Thread kavitha ramesh


Hi Konstantin,

I used the sitemap using the transformer.But when I run it  , iam 
getting  the page with the title as untranslatedtext.It is not 
able to dispay the messages from messages_en.xml and 
messages_de.xml.Please help me,,,

Kavitha.





On Fri, 05 Jul 2002 Piroumian Konstantin wrote :
  From: kavitha ramesh [mailto:[EMAIL PROTECTED]]
 
  Hi Konstantin,
 
  Thanks for your mail.It is only another extension and Iam 
not
  using any JSP Generator.I use Cocoon 2.0.I have setup my 
sitemap
  as follows:
 
  map:match pattern=jsp/*
  map:generate type=jsp src=/language/jsp/{1}.jsp/

   map:transform type=i18n /

  map:transform src=simple.xsl/
  map:serialize type=html/
  /map:match

Hope the above solves your problem.

Konstantin

 
  My directory structure is like this:
 
  Language--Name of the Directory
  *jsp
 *simple.jsp
  *translations
 * messages_en.xml
 * messages_de.xml
  *sitemap.xmap
  *simple.xml
  *simple.xsl
 
  Kavitha
 
  On Fri, 05 Jul 2002 Piroumian Konstantin wrote :
From: kavitha ramesh 
[mailto:[EMAIL PROTECTED]]
   
   
Hi,
   
Iam working with i18n in Cocoon.And I have a file called
simple.xml which displays a title in English and 
German.When
  I
converted the simple.xml to a simple.jsp only the front 
page
  is
displayed.But Iam not able to display it in English and
German.Here are the files, simple.jsp, messages_en.xml 
and
messages_de.xml:
  
  Why are you using *.jsp: is it only another extension or you 
are
  using the
  JspGenerator with it? Did you setup your sitemap correctly? 
Look
  for 'i18n'
  in Cocoon logs to see if the i18n transformer was called.
  
  What is the version of your Cocoon?
  
  Konstantin
  
   
simple.jsp
___
   
?xml version=1.0 encoding=UTF-8?
root xmlns:i18n=http://apache.org/cocoon/i18n/2.0;
title
i18n:texttitlemessage/i18n:text
/title
menu
item
link
hrefsimple.jsp?locale=en_US/href
titleEnglish /title
/link
/item
item
link
hrefsimple.jsp?locale=de_DE/href
titleGerman /title
/link
/item
item
link
hrefsimple.jsp?locale=hi_IN/href
titleHindi /title
/link
/item
/menu
/root
   
messages_en.xml
___
   
?xml version=1.0 encoding=UTF-8?
!-- English message catalogue file for cocoon2 sample
  webapp
--
catalogue xml:lang=en
message key=titletextGoood Day!/message
/catalogue
   
messages_de.xml
___
   
?xml version=1.0 encoding=UTF-8?
!-- German message catalogue file for cocoon2 sample 
webapp
  --
catalogue xml:lang=de
message key=titletextGuten Tag!/message
/catalogue
   
If someone knows please help me!
   
Kavitha.
   

_
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:
  [EMAIL PROTECTED]
For additional commands, e-mail:
  [EMAIL PROTECTED]
   
  
  
 -
  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:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
  
-
  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: 
[EMAIL PROTECTED]
  For additional commands, e-mail:   
[EMAIL PROTECTED]
 

-
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: 
[EMAIL PROTECTED]
For additional commands, e-mail:   
[EMAIL PROTECTED]


_
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]




Problem with jsp in i18n

2002-07-05 Thread kavitha ramesh

Hi,

Iam working with i18n in Cocoon.And I have a file called 
simple.xml which displays a title in English and German.When I  
converted the simple.xml to a simple.jsp only the front page is 
displayed.But Iam not able to display it in English and 
German.Here are the files, simple.jsp, messages_en.xml and 
messages_de.xml:

simple.jsp
___

?xml version=1.0 encoding=UTF-8?
root xmlns:i18n=http://apache.org/cocoon/i18n/2.0;
title
i18n:texttitlemessage/i18n:text
/title
menu
item
link
hrefsimple.jsp?locale=en_US/hreftitleEnglish /title
/link
/item
item
link
hrefsimple.jsp?locale=de_DE/href
titleGerman /title
/link
/item
item
link
hrefsimple.jsp?locale=hi_IN/href
titleHindi /title
/link
/item
/menu
/root

messages_en.xml
___

?xml version=1.0 encoding=UTF-8?
!-- English message catalogue file for cocoon2 sample webapp 
--
catalogue xml:lang=en
message key=titletextGoood Day!/message
/catalogue

messages_de.xml
___

?xml version=1.0 encoding=UTF-8?
!-- German message catalogue file for cocoon2 sample webapp --
catalogue xml:lang=de
message key=titletextGuten Tag!/message
/catalogue

If someone knows please help me!

Kavitha.

_
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: [EMAIL PROTECTED]
For additional commands, e-mail:   [EMAIL PROTECTED]