Re: Big problem with IE!

2002-01-14 Thread Adam A R

Hi TJ,

Please check the logicsheet which munges the data.

If the browser(I think you will encounter the same problem if you were to
use any other browser. Please check and let us know) can display it 5 times,
it means that there is probably no problem with the browser.

Sometimes you may keep opening connections to some resource without closing
them in your pages. It will work for first 'n' number of times. And at 'n+1'
th time it will fail. There was similar problem of mine.

after 19-20 requests the CPU usage would become 100% without page being
served and everything in a limbo. It turned out that there was a tweak
inserted by another group of ours into Cocoon which %'$( the caching and
hence the problem.

Hope this gives some insight into your problem.

cheers adam

- Original Message -
From: TJ Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 9:23 AM
Subject: Big problem with IE!


 Hello all
 Before I get flamed - let me apologize for probably an inappropriate
posting
 to the group -but I AM using Cocoon/Tomcat/Servlets/etc. so I'm hoping
 someone out there has encountered my problem (and has a FIX) and
desperation
 has set in so

 Particulars: Tomcat 3.3, Cocoon 1.8.2.  Cocoon used to serve html form
pages
 for user updating, etc.  When the form is sent to the server (submitted)
it
 is sent to a servlet of mine running in Tomcat.  The servlet munges the
data
 etc. etc.  The problem is with IE as the client browser.  For 5 out of 6
(or
 thereabouts) times, accessing the servlet via URL works fine.  The 6th
time
 I get the infamous The Page cannot be displayed, Can't find server, blah
 blah.  I've searched many news groups/microsoft support/etc. without
 success.  Has anyone in this group encountered this #^%#^ problem?

 regards
 TJ




 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Help needed with debugging XSP

2001-12-14 Thread Adam A R

Hello all,

I am using Cocoon 1.8 with iAWS server.

I have the following flow in my application.

XML - XSP - XSLT

XML file processed by XSP(actually an XSL) to add dynamic content. The
output of which is transformed by a Stylsheet and the result returned
to the user.

Now, I want to look at the output generated by the XSP.

How can I do that??

Thanks in advance for all the help.

cheers
Adam


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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Internationalization

2001-11-28 Thread Adam A R

Hi Siddharth,

I have a similar problem. And currently I do the following.

I get the preferred language for this user. Put it into the session
variable 'i18n:lang'. And lo!! depending on the language choosen by
the user the user will see Nihongo/Espanol/Francais/

But of course, I have to support it. I do this by using the i18n tags
and enclosing the text presented to the user inside the 

i18n:translate
i18n:textYour text goes here/i18n:text
/i18n:translate

And the dictionary referred must have the strings for the
corresponding languages. 

Aint that easy-peasy!!??  :-)

Hope this helps.

cheers

Adam


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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: newbie Question abt number of xsls

2001-11-19 Thread Adam A R

Hi Arun,

I havent found any standard XSL to convert to HTML/HDML/WML/CHTML! :-(
Just in case if you find them please forward them to me.  Thanks in
advance.

I personally think that a single XSL for sinlge ML should suffice. Though I
am not a very good XSL author, I managed to write XSLs to write forms in
HTML/HDML from single XML file. But, I dont have XSLs which cover the
complete list of tags in HTML/HDML/CHTML

I am attaching a sample xml, to-html.xsl and to-hdml.xsl file with this
email. The to-hdml.xsl is a live example of  bad xsl authoring. Because it
uses the ![CDATA[.]] tag. But couldnt help it since I dont
have a HDMLFormatter and HTMLFormatter puts the DOCTYPE declaration at the
top!!  eeeks!!!

Hope the files help you. If you find anything incorrect/wrong(or just dont
like the template) please feel free to change the XSL. But, also give the
changes to me so that I will incorporate them  ;-)

Note:- The XSL can only convert only process the following elements from
HTML.
1. form,
2. input type(only one submit per form. and cannot use cancel/clear input
types)
3. select... / option
4. checkbox
5. anchor

I know, one requires much more ... but one can only write to the Lowest
Common Denominator(LCD) to the various formats, in which the data must be
presented. Find workarounds if possible Or dont support them!!

Cheers,

Adam



- Original Message -
From: Arun.N [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 19, 2001 6:25 PM
Subject: Re: newbie Question abt number of xsls


 Hi,
 Thankx Adam !!! for your reply.
   I checked what you said .. sounds good.
 but all the examples i found with the cocoon 1.8.2  was using a
separate
 stylesheet.

 in the code snippet you have shown here, is the to-chtml.xsl and
to-html.xsl
 enough for all the pages. if i am going to support two MLs HTML and CHTML
  is a single generic xsl for each ML sufficient??

 If so . building  that generic xsl depends on the XML tags i define in my
 application..  or is there any stylesheets which are freely available
so
 that i will follow the protocol defined for the XML tags decided by the
 provider of the xsl.
 I feel if there are any predefined xsl i would prefer and follow the tags
 defined by that ... because as i am not too good in writing xsls,
following
 the protocol will save lot of my development time.

 if there are any links for stylesheets to convert from XML to any ML in a
 generic way, please can you give me some links. It will be very helpful
for
 me

 Thankz in advance,
 regards,
 Arun.N


 - Original Message -
 From: Adam A R [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, November 19, 2001 11:48 AM
 Subject: Re: newbie Question abt number of xsls


  Hi Arun,
 
  Yes. It is possible to use one .xsl for each ML
 
  If you are using Cocoon 1.8 then use the media=xxx parameter in the
  processing instruction to specify the useragent for the xsl.
 
  eg.
 
  ?cocoon-process type=xslt?
  ?xml-stylesheet href=xsl/to-hdml.xsl type=text/xsl media=up?
  ?xml-stylesheet href=xsl/to-chtml.xsl type=text/xsl media=imode?
  ...
  ...
  ...
  ?xml-stylesheet href=xsl/to-html.xsl type=text/xsl?  !--  This is
 the
  default. --
 
 
  But for this to work, you should configure User-Agents(Browsers) in the
  cocoon.properties file.
 
  part of my cocoon.properties looks like this.
 
##
  ##
  # User Agents (Browsers) #
  ##
 
  # NOTE: numbers indicate the search order. This is very important since
  # some words may be found in more than one browser description. (MSIE is
  # presented as Mozilla/4.0 (Compatible; MSIE 4.01; ...)
  #
  # for example, the explorer=MSIE tag indicates that the XSL stylesheet
  # associated to the media type explorer should be mapped to those
 browsers
  # that have the string MSIE in their user-Agent HTTP header.
 
  browser.0 = up=UP.Browser/
  browser.1 = explorer=MSIE
  browser.2 = pocketexplorer=MSPIE
  browser.3 = handweb=HandHTTP
  browser.4 = avantgo=AvantGo
  browser.5 = imode=DoCoMo
  browser.6 = opera=Opera
  browser.7 = lynx=Lynx
  browser.8 = java=Java
  browser.9 = wap=Nokia
  browser.10 = wap=UP
  browser.11 = wap=Wapalizer
  browser.12 = mozilla5=Mozilla/5
  browser.13 = mozilla5=Netscape6/
  browser.14 = netscape=Mozilla
 
##
 
 
  I dont know much of C2. Though I have installed it... lately I am
running
  short of time.
  Someone on the list might be able to explain it for C2.
 
  But, as far as I know you will have to use Matchers for using each
  stylesheet depending on the user-agent.
  Can anybody shed light on how to do this in C2??
 
 
  cheers
  Adam
 
 
  - Original Message -
  From: Arun.N
  To: [EMAIL PROTECTED]
  Sent: Saturday, November

Re: newbie Question abt number of xsls

2001-11-18 Thread Adam A R

Hi Arun,

Yes. It is possible to use one .xsl for each ML

If you are using Cocoon 1.8 then use the media=xxx parameter in the
processing instruction to specify the useragent for the xsl.

eg.

?cocoon-process type=xslt?
?xml-stylesheet href=xsl/to-hdml.xsl type=text/xsl media=up?
?xml-stylesheet href=xsl/to-chtml.xsl type=text/xsl media=imode?
...
...
...
?xml-stylesheet href=xsl/to-html.xsl type=text/xsl?  !--  This is the
default. --


But for this to work, you should configure User-Agents(Browsers) in the
cocoon.properties file.

part of my cocoon.properties looks like this.
##
##
# User Agents (Browsers) #
##

# NOTE: numbers indicate the search order. This is very important since
# some words may be found in more than one browser description. (MSIE is
# presented as Mozilla/4.0 (Compatible; MSIE 4.01; ...)
#
# for example, the explorer=MSIE tag indicates that the XSL stylesheet
# associated to the media type explorer should be mapped to those browsers
# that have the string MSIE in their user-Agent HTTP header.

browser.0 = up=UP.Browser/
browser.1 = explorer=MSIE
browser.2 = pocketexplorer=MSPIE
browser.3 = handweb=HandHTTP
browser.4 = avantgo=AvantGo
browser.5 = imode=DoCoMo
browser.6 = opera=Opera
browser.7 = lynx=Lynx
browser.8 = java=Java
browser.9 = wap=Nokia
browser.10 = wap=UP
browser.11 = wap=Wapalizer
browser.12 = mozilla5=Mozilla/5
browser.13 = mozilla5=Netscape6/
browser.14 = netscape=Mozilla
##


I dont know much of C2. Though I have installed it... lately I am running
short of time.
Someone on the list might be able to explain it for C2.

But, as far as I know you will have to use Matchers for using each
stylesheet depending on the user-agent.
Can anybody shed light on how to do this in C2??


cheers
Adam


- Original Message -
From: Arun.N
To: [EMAIL PROTECTED]
Sent: Saturday, November 17, 2001 9:06 PM
Subject: newbie Question abt number of xsls


Hi,
Is it possible to have only one xsl for each type ML ie one for WAP
one for and one for HTML generation and etc.
And all the xml page should use the same stylesheet. according to the
useragent it should pick one of the xsl in all the pages.
I have a senario where there are 200 pages in the application. As far as my
understanding for each page we should write an xsl and one for each type of
ML. Is there any generic approach ? because the application will have lots
of pages if there is one to one.
ie, as of now i have to support html wap and chtml ... that becomes 200 xmls
+ 600 xsl !!!

Please suggest me what to do ??
I also welcome someother sort of implementaion also.
Thankx in advance,
Arun.N


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

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Reducing system resource usage by Tomcat/Cocoon

2001-11-15 Thread Adam A R

Hi Anthony,

I was wondering if it was only me whos having the problem.

My Problem:

I am using Cocoon1.8 with iAnywhere Wireless Server(from Sybase). For
simplicity I am using a simple XML file with a simple XSL stylesheet which
transforms the XML to HTML
Everything is OK until I request around 19 xml documents from Cocoon.(it
doesnt matter if i keep refreshing the same page.) But when I cross this
limit, the CPU usage never comes back to normal. It keeps varying between
44% - 85%. And if i keep requesting xml pages... it goes upto 100% never to
come back!!!  I have to restart the server.

Has anyone else run into such case??

Is there some solution/workaround to this? if its a problem with Cocoon.

cheers
Adam


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 10:30 PM
Subject: Re: Reducing system resource usage by Tomcat/Cocoon


 Interesting - I've been running c2 on NT and UNIX - it seems much better
 behaved under UNIX - I still fail to understand the CPU usage when it's
 idle (100% if allowed on NT! and 2.6% on UNIX, but why, it's not doing
 anything).

 dunno the answer. Maybe should be posted to the 'dev' mail list.

 Regards,

 Anthony Aldridge
 Lead Application developer

 Managed Intranet Hosting
 CSC
 JPMorganChase
 Personal GDP: 325-8338
 MIH Hotline: 876-1300





 Robert J. Lebowitz [EMAIL PROTECTED] on 14/11/2001 02:40:56

 Please respond to [EMAIL PROTECTED]

 To:   [EMAIL PROTECTED]
 cc:
 Subject:  Reducing system resource usage by Tomcat/Cocoon


 I've been running Cocoon 2 for a few days now using Tomcat/Apache as a
 servlet container.  Frankly, I'm a bit stunned at what a memory hog the
 framework is.

 I've been trying to determine by what means I can reduce the amount of
 memory utilized, but thought I'd simply ask the group to see what items
 they
 think would be significant:

 1.  Choice of VM:  I'm using Sun's jdk 1.3.1 under Linux.  Would the IBM
VM
 be a better choice?
 2.  Configuration of Tomcat:  what aspects of Tomcat can be tuned to
reduce
 memory usage?  I've experimented  running Tomcat in standalone mode, and
 using the Warp connector.. what can I do to reduce resource usage?
 3.  Eliminating unneeded jars, Generators, Transformers, etc.
 4.  Cocoon configuration itself...

 Thanks I look forward to your remarks.

 Rob


 -
 Please check that your question has not already been answered in the
 FAQ before posting. http://xml.apache.org/cocoon/faqs.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/faqs.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/faqs.html

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Problem Building C2

2001-11-14 Thread Adam A R



Hi All,

I am new to Cocoon. 

I am trying to build C2 from the 
source(from CVS). But I get an error in the beginning itself.

The error is given below

D:\home\adam\src\xml-cocoon2.\build.bat -Dinclude.webapp.libs=yes 
-Dinstall.war="C:\Program Files\ServletEngine\Webapps" installBuildfile: 
build.xml

BUILD FAILED

javax.xml.parsers.FactoryConfigurationError: 
com.sun.xml.parser.SAXParserFactoryImpl 
at 
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:84) 
at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java, 
CompiledCode) at 
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85) 
at org.apache.tools.ant.Main.runBuild(Main.java, Compiled 
Code) at 
org.apache.tools.ant.Main.start(Main.java, Compiled 
Code) at 
org.apache.tools.ant.Main.main(Main.java:176)

Total time: 1 
secondcom.sun.xml.parser.SAXParserFactoryImpl

What am I missing??

Thanks in advance.

Adam


CPU Hogging by Cocoon

2001-11-12 Thread Adam A R



Hi All,

I am using Cocoon 1.8 with iAnywhere 
Wireless Server as the Servlet Engine.

I have seen that the CPU usgae increases 
when I request any page via Cocoon.
The trend of this increase is interesting. 
it periodically rises and falls. But the time for which it is being used keeps 
increasing over the time. Finally after some time, the memory is completely used 
by this application. If I restart the server, everything is fine.

Also the server is fine if I dont request 
the XML page via Cocoon.

How do I stop Cocoon from hogging the CPU 
usage? 

Or am I missing out 
something??

Thanks in advance

Adam


Malformed XML or Non-welformed XML

2001-10-27 Thread Adam A R



Hi All,

I am trying this since long time but 
unable to get through.

Requirement:
output theACTION tag(which does not 
have a closing tag) foran HDML page.

I tried using xsl:text 
disable-output-escaping="yes"lt;ACTION  
gt;/xsl:textto no avail.
I get the lt; and gt; as they 
are in myHDML page andthe result is my display is all gomee 
gomee.
Or did I miss out something?

Or is there a standard way of outputting 
non standard text like this!??

Thanks in advance.

cheers

Adam


Request Parameters in XSP

2001-10-23 Thread Adam A R



Hi All,

I am a newbie in the world of 
COCOON.

Hope you all Butterflies will be able to 
help this little larva.. ;-) in flying with wings of XML.

ok.. heres my problem..

I want to access the parameters being 
passed in the request object. I have tried a few examples(from tutorials and 
documentation of C2). But i am unable to get the parameters being passed in the 
request object usingXSP request taglib.

Am i missing out something? 

Thanks in advance.

cheers

Adam