global variable

2002-07-30 Thread Sternath Elmar
Hello, is it possible in Cocoon to define and set some kind of global variable which I can access from all currently running sessions in parallel? Regards, Elmar - Please check that your question has not already been answered

Re: i18n key generation with xalan

2002-07-30 Thread Joerg Heinicke
I assume you are trying to use the i18n transformer with Xalan command line version only? It's part of Cocoon, not of Xalan, so it won't work. Or is it only a problem with creating the i18n keys? Then you should provide some more code. Maybe on another list too. Joerg Albert Cervera Areny wro

Re: Transforming Big XML Files

2002-07-30 Thread Alessandro Marcellini
Vadim Gritsenko wrote: > > From: Alessandro Marcellini [mailto:[EMAIL PROTECTED]] > > > > Vadim Gritsenko wrote: > > > > > > From: Alessandro Marcellini [mailto:[EMAIL PROTECTED]] > > > > > > > > Hi all, > > > > I've a problem transforming big xml Files with Xalan or Saxon. > > > > > > How big

esql - oracle stored procedure returns resultset

2002-07-30 Thread Frank Taffelt
Hi, i'm trying to get an oracle stored procedure working, that returns a resultset. but i always get a : java.lang.RuntimeException: Error executing statement: { call ? := sp_get_stocks(?) } : java.sql.SQLException: ORA-01008: not all variables bound here is my code: { call ? := sp_get_stock

XSP implents Interface ?

2002-07-30 Thread Dr. Hans M. Rupp
Hallo! Can a XSP implement an interface? If yes, what would be the proper syntax? Many thanks, Hans - Please check that your question has not already been answered in the FAQ before posting.

Multiple map:resource calls

2002-07-30 Thread Lorenzo De Sio
Hi all, it seems to me like it is not possible to perform multiple calls in a single matcher. Fragments from my sitemap: [...]

Re: esql - oracle stored procedure returns resultset

2002-07-30 Thread Christian Haul
On 30.Jul.2002 -- 10:44 AM, Frank Taffelt wrote: > Hi, > > i'm trying to get an oracle stored procedure working, that returns a > resultset. > but i always get a : > > java.lang.RuntimeException: Error executing statement: { call ? := > sp_get_stocks(?) } : java.sql.SQLException: ORA-01008: not

Re: ESQL erros - cocoon2.0.3

2002-07-30 Thread Christian Haul
On 29.Jul.2002 -- 01:23 PM, Dominic Reynolds wrote: > I am trying to use ESQL (basic xsp page modelled on the samples). > > my problem is that I get the following null pointer exception: > > Original exception : java.lang.NullPointerException >at > >org.apache.cocoon.components.languag

Better way to aggregate?

2002-07-30 Thread Alex Romayev
I've been looking into the aggregation techniques and there seems to be two ways people go about doing it. I'm trying to understand the pros/cons of the two approaches. Approach 1: Aggregate HTML Each map:part calls a pipeline, which generates, transforms and serializes to HTML, e.g., Approa

RE: Better way to aggregate?

2002-07-30 Thread Conal Tuohy
If I understand correctly, the aggregation will read the data from each of the subordinate pipelines WITHOUT the serialization step, so these 2 would be equivalent. > -Original Message- > From: Alex Romayev [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 30 July 2002 22:18 > To: [EMAIL PROTE

Re: Excel generator ("Vadim Autoresponder please read")

2002-07-30 Thread Andrew C. Oliver
Sven Kuenzler wrote: > Good question. ATM, I only could give artificial scenarios. > > The real use case I had in mind was the application where I used the > Serializer out of Cocoon. This application produces an Excel sheet > which is sent out by Email. So it is not direct a response but a "

Filtering HTML pages

2002-07-30 Thread Matthew Langham
Hi gang, we are working on a project where one of the main goals is to provide a filter for external web pages. The idea is that the client accesses the "filter" running on a server and then receives HTML pages that have been filtered according to certain rules. One way of doing this is obviousl

RE: Transforming Big XML Files

2002-07-30 Thread Vadim Gritsenko
> From: Alessandro Marcellini [mailto:[EMAIL PROTECTED]] > > Vadim Gritsenko wrote: > > > > From: Alessandro Marcellini [mailto:[EMAIL PROTECTED]] > > > > > > Vadim Gritsenko wrote: > > > > > > > > From: Alessandro Marcellini [mailto:[EMAIL PROTECTED]] > > > > > > > > > > Hi all, > > > > > I've

Re: esql - oracle stored procedure returns resultset

2002-07-30 Thread Frank Taffelt
ok second try with: {call sp_get_stocks(20) } results in : Error executing statement: {call sp_get_stocks(?) }: java.sql.SQLException: ORA-06550: line 1, column 7: PLS-00221: 'SP_GET_STOCKS' is not a procedure or is undefined ORA-06550: line 1, column 7: PL/SQL: State

RE: global variable

2002-07-30 Thread Vadim Gritsenko
> From: Sternath Elmar [mailto:[EMAIL PROTECTED]] > > Hello, > > is it possible in Cocoon to define and set some kind of global variable which > I can access from all currently running sessions in parallel? http://marc.theaimsgroup.com/?l=xml-cocoon-users&w=2&r=1&s=global+variab les&q=b Vadim

RE: XSP implents Interface ?

2002-07-30 Thread Vadim Gritsenko
> From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]] > > Hallo! > > Can a XSP implement an interface? No. (why?) Vadim > If yes, what would be the proper syntax? > > Many thanks, > > Hans - Please check that your quest

RE: Multiple map:resource calls

2002-07-30 Thread Vadim Gritsenko
> From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]] > > Hi all, > > it seems to me like it is not possible to perform multiple resource="xxx"/> calls in a single matcher. > > Fragments from my sitemap: > > [...] > > > > > > > >

Re: esql - oracle stored procedure returns resultset

2002-07-30 Thread Christian Haul
On 30.Jul.2002 -- 02:37 PM, Frank Taffelt wrote: > ok second try with: > > > {call sp_get_stocks( direction="in"type="Int">20) } > > > > > > > > results in : > > Error executing statement: {call sp_get_stocks(?) }: java.sql.SQLException: > ORA-06550: line 1, column 7:

Re: Excel generator ("Vadim Autoresponder please read")

2002-07-30 Thread Sven Kuenzler
Andrew C. Oliver schrieb: >> The real use case I had in mind was the application where I used the >> Serializer out of Cocoon. This application produces an Excel sheet >> which is sent out by Email. So it is not direct a response but a "side >> effect" to the request. In C2 this is called a "

RE: Filtering HTML pages

2002-07-30 Thread Klaus Bertram
Hi Mattthew What's about the tidy software in the release? I don't know the details of XHTML but it looks like that tidy is near this Klaus > -Original Message- > From: Matthew Langham [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 30, 2002 1:59 PM > To: Cocoon-Dev@Xml. Apache. Org

Problem with IBM Websphere

2002-07-30 Thread kavitha ramesh
Hi, I have installed Cocoon 2.0 in the IBM Websphere 4.0.3 But the JSP generator is not working.I tried placing all the jar files(for example jasper-compiler.jar, etc..,), but it still doesnt work,,,Some one please help me,,, Kavitha. ___

Re: esql - oracle stored procedure returns resultset

2002-07-30 Thread Frank Taffelt
the final chapter: "... Oracle itself can only return result sets from a 'naked' query, or via a cursor as a stored procdure output parameter. The latter is not available from standard JDBC, only the extension to JDBC, CallableStatement.getResultSet(int paramindex) available from Oracle drivers. .

RE: using request selector to choose xsl

2002-07-30 Thread Vadim Gritsenko
> From: Barbara Post [mailto:[EMAIL PROTECTED]] > > Hello, > > is this ok for your problem ? But if "style" is not specified this wouldn't > be ok. So you would have to specify a default value anyway when > submitting... Edited version: Vadim > Babs > - O

RE: Filtering HTML pages

2002-07-30 Thread Matthew Langham
Hi Klaus, yes I meant using Tidy. We do this already but on a much lesser scale than providing a proper "filter" solution. Matthew -Original Message- From: Klaus Bertram [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 2:54 PM To: [EMAIL PROTECTED] Subject: RE: Filtering HTML p

Re: esql - oracle stored procedure returns resultset

2002-07-30 Thread Christian Haul
On 30.Jul.2002 -- 03:15 PM, Frank Taffelt wrote: > the final chapter: > "... > Oracle itself can only return result sets from a 'naked' query, or via a > cursor as a stored procdure output parameter. The latter is not available > from > standard JDBC, only the extension to JDBC, > CallableStatemen

RE: Excel generator ("Vadim Autoresponder please read")

2002-07-30 Thread Vadim Gritsenko
> From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Sven Kuenzler > > Andrew C. Oliver schrieb: > > >> The real use case I had in mind was the application where I used the > >> Serializer out of Cocoon. This application produces an Excel sheet > >> which is sent out by Email. So it is not di

AW: caching strategy

2002-07-30 Thread Sternath Elmar
Hi Vadim, thanks for your support. Caching works now for JSPs and also for CIncludeTransformer as long as I get my XML input from static xml files. Unfortunately, I have to get my XML input via HTTP requests from a remote server. In this case, these requests are always executed, caching does n

Re: using request selector to choose xsl

2002-07-30 Thread Jo Bourne
Hey Barbara, thanks for your suggestion, unfortunately it won't work for us as sending a style all the time would require a massive rewrite of our system which generates all the urls automatically and it is really only occassional special cases we need to catch with a specified style thanks t

RE: using request selector to choose xsl

2002-07-30 Thread Jo Bourne
Hi Vadim, I am confused by your example, the way it reads to me the default xsl will always run, even if the special one is detected and run first? thanks Jo At 9:18 AM -0400 30/7/02, Vadim Gritsenko wrote: > > From: Barbara Post [mailto:[EMAIL PROTECTED]] >> >> Hello, >> >> is this ok for you

RE: caching strategy

2002-07-30 Thread Vadim Gritsenko
> From: Sternath Elmar [mailto:[EMAIL PROTECTED]] > > Hi Vadim, > > thanks for your support. Caching works now for JSPs and also for > CIncludeTransformer as long as I get my XML input from static xml files. > Unfortunately, I have to get my XML input via HTTP requests from a remote > server. In

RE: action not working

2002-07-30 Thread sylviat
Vadim, thanks a lot for your reply. I now understand the '../1' syntax. Unfortunately though it seems that this is not the problem. The matchers in my pipeline are hard coded, ie: I am getting "The requested URI /cocoon/demo/abc" was not found." message (I am running f

RE: using request selector to choose xsl

2002-07-30 Thread Vadim Gritsenko
> From: Jo Bourne [mailto:[EMAIL PROTECTED]] > > Hi Vadim, > > I am confused by your example, the way it reads to me the default xsl will > always run, even if the special one is detected and run first? You have not interpreted sitemap correctly. > > > > Add generator. > > Is "style" r

Re: esql - oracle stored procedure returns resultset

2002-07-30 Thread Frank Taffelt
> So you need to return a cursor as first parameter and use > @resultset-from-object="1" yes but the to code to achive this is oracle dependent: IMHO code to achive this should look like: 1 CallableStatement cstmt = conn.prepareCall(query); 2 cstmt.registerOutParameter(1,OracleTypes.CURSOR); 3

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: How to switch to another resource if one resource is not available?

2002-07-30 Thread Per Kreipke
> > That's very interesting. I don't recall ever seeing 'peer' > > elements in the various sample sitemaps, only nested > elements. > > > > Does that also mean that one could do the following to selectively > read from > > an existing file or apply transforms? > > > > > > > > > > >

RE: How to switch to another resource if one resource is not available?

2002-07-30 Thread Per Kreipke
> > > That's very interesting. I don't recall ever seeing 'peer' > > > elements in the various sample sitemaps, only nested > > elements. > > > > > > Does that also mean that one could do the following to selectively > > read from > > > an existing file or apply transforms? > > > > > > > > >

Re: XSP implents Interface ?

2002-07-30 Thread Dr. Hans M. Rupp
We have an architecture where a command puts objects into the request or session and the XSP fetches those Objects. Since both the command and the XSP need to know the attribute name of a particular object in the request, I thought it might be nice to have an interface where the attribute names ar

RE: How to use map:redirect-to combined with serverpages

2002-07-30 Thread Christian Hoofe
This is my solution for a serverpage redirect combined with an action: 1. Sitemaps needs ServerPagesAction 2. Site matcher ... 3. Call of the matcher ... The "next" parameter tells the sitemap the next pag

RE: action not working

2002-07-30 Thread Vadim Gritsenko
> From: sylviat [mailto:[EMAIL PROTECTED]] > > Vadim, thanks a lot for your reply. I now understand > the '../1' syntax. Unfortunately though it seems that > this is not the problem. > > The matchers in my pipeline are hard coded, ie: > > > > > > > If action set did not

RE: How to switch to another resource if one resource is not available?

2002-07-30 Thread Vadim Gritsenko
> From: Per Kreipke [mailto:[EMAIL PROTECTED]] > ... > > > See lint.xmap > > > > I don't see it in 2.0.3, is lint.xmap a 2.1 file? Will it work > > under 2.0.3? > > Forget it, I figured it out: you meant lint/sitemap.xmap Oops. My bad. Yes, lint/sitemap.xmap. I was trying to put in there as mu

multiple checkboxes and request parameters passed to an xsl

2002-07-30 Thread Barbara Post
Hello, how can my stylesheet get all the http request parameters since the http request sends a variable number of parameters named "checkedbox_i" for example, "i" being an unique identifier ? checkboxes are in variable number on the submit page, depending on a former choice. on the submit page t

RE: XSP implents Interface ?

2002-07-30 Thread Vadim Gritsenko
> From: Dr. Hans M. Rupp [mailto:[EMAIL PROTECTED]] > > We have an architecture where a command puts objects into the request or > session and the XSP fetches those Objects. Since both the command and the > XSP need to know the attribute name of a particular object in the > request, I thought it

RE: jboss 3 + cocoon 2.0.3

2002-07-30 Thread Terry Anderson
Gerhard, Not sure if you got an answer, but I just got cocoon 2.0.3 + jboss 3.0.0 + tomcat 4.0.3 running. I built the standard cocoon webapp (.war) into a .ear file and deployed from that. When I tried to deploy the .war file, I got the same error you mention below. The .ear file works, howeve

Re: esql - oracle stored procedure returns resultset

2002-07-30 Thread Christian Haul
On 30.Jul.2002 -- 04:34 PM, Frank Taffelt wrote: > > So you need to return a cursor as first parameter and use > > @resultset-from-object="1" > > yes but the to code to achive this is oracle dependent: > IMHO code to achive this should look like: > > 1 CallableStatement cstmt = conn.prepareCall(

Re: ESQL erros - cocoon2.0.3

2002-07-30 Thread Dominic Reynolds
Chris, I have attached the output (including stack trace). I haven't got any esql to work. I even tried not using the datasource (even though it works in the actions i've created) and include the esql tags for drive, url, username etc. and the reult is the same: the compiled java doesn't s

Re: multiple checkboxes and request parameters passed to an xsl

2002-07-30 Thread Christian Haul
On 30.Jul.2002 -- 07:15 PM, Barbara Post wrote: > Hello, how can my stylesheet get all the http request parameters since the > http request sends a variable number of parameters named "checkedbox_i" for > example, "i" being an unique identifier ? checkboxes are in variable number > on the submit p

RE: jboss 3 + cocoon 2.0.3

2002-07-30 Thread Per Kreipke
Terry, > Not sure if you got an answer, but I just got cocoon 2.0.3 + jboss 3.0.0 > + tomcat 4.0.3 running. > > I built the standard cocoon webapp (.war) into a .ear file and deployed > from that. It sounds like you simply renamed the .war to .ear. Is that what you meant or did you specify a dif

Error handling in xsp:element...

2002-07-30 Thread Per Kreipke
If I do the following in an XSP, the CInclude transformer doesn't recognize the cinclude:include element because it has no namespace associated with it. strURL I had to change it to be: http://apache.org/cocoon/include/1.0";> strURL In the second example, the condition where I forget

RE: jboss 3 + cocoon 2.0.3

2002-07-30 Thread Terry Anderson
Actually, built the .war into the .ear along with the applications.xml file. -Original Message- From: Per Kreipke [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 12:53 PM To: [EMAIL PROTECTED] Subject: RE: jboss 3 + cocoon 2.0.3 Terry, > Not sure if you got an answer, but I ju

Re: jboss 3 + cocoon 2.0.3

2002-07-30 Thread Gerhard Hipfinger
Thank you Terry, I will try this shortly, I report success story (hopefully) when I am done. Gerhard Terry Anderson wrote: >Actually, built the .war into the .ear along with the applications.xml >file. > >-Original Message- >From: Per Kreipke [mailto:[EMAIL PROTECTED]] >Sent: Tuesday,

java.lang.OutOfMemoryError

2002-07-30 Thread Anand_Krishnan
I see these OutOfMemory errors in my webserver logs. Does anybody know what's causing this error. I have a 3MB xml file that I am trying to transforming to html. My XSLT traverses this 3MB xml to extract only relevant information based on user's input and generate an xml out of it. Please help...

Re: AW: Action and Transform map:parameter

2002-07-30 Thread Anand_Krishnan
I do have those param names inside my XSLT. Anyway I found an alternate way to send values to these parameters from my URL without going thru . Thank you. From:

pb with http request

2002-07-30 Thread cyril vidal
Hy,    I just was trying to run the example wrotten by Steve Punk in "Getting started with Cocoon 2" http://www.xml.com/lpt/a/2002/07/10/cocoon2.html   More precisely, the last example that calculates a factorial from a numeric value submitted via HTTP POST.   Here's the sitemap:   http://ap

Re: multiple checkboxes and request parameters passed to an xsl

2002-07-30 Thread Barbara Post
hello Christian,, I don't want to use xsp, only xsl so... Babs -- website: www.babsfrance.fr.st ICQ #: 135868405 - Original Message - From: "Christian Haul" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 30, 2002 7:45 PM Subject: Re: multiple checkboxes and request p

How to use LinkSerializer

2002-07-30 Thread Torsten Knodt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, currently I have the problem, that LinkSerializer isn't working on all HTML-Tags, that I'm using in my HTML output. I've thought about adding them to the source, but I think it's better to prepend a xsl to the LinkSerializer to transform the

RE: Error handling in xsp:element...

2002-07-30 Thread Vadim Gritsenko
> From: Per Kreipke [mailto:[EMAIL PROTECTED]] > > If I do the following in an XSP, the CInclude transformer doesn't recognize > the cinclude:include element because it has no namespace associated with it. > > This is incorrect. > strURL > > > > I had to change it to be: > > uri="http

xsl:fo problem not getting data from the javascript

2002-07-30 Thread Gerald Michalitz
hallo sorry for the long code but i need a little help (please) my page2fo-javascript.xsl has this http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:lxslt="http://xml.apache.org/xslt"; xmlns:my-ext="ext1" extension-element-prefixes="my-ext">

RE: action not working

2002-07-30 Thread sylviat
Hi Vadim - Thanks for the suggestion - my code now works perfectly. I actually knew that an action not returning a map object will cause the rest of the pipeline, inside the , to be skipped. I didn't think this was my problem because in sample code 'employee.xsp' the action is not always exec

Re: java.lang.OutOfMemoryError

2002-07-30 Thread Joerg Heinicke
Without a look on the stack trace OutOfMemoryError often occurs while having endless loops/endless recursive calls etc. in the XSLT. Regards, Joerg [EMAIL PROTECTED] wrote: > I see these OutOfMemory errors in my webserver logs. Does anybody know > what's causing this error. I have a 3MB xml fi

Re: pb with http request

2002-07-30 Thread Joerg Heinicke
This has nothing to do with the example, it's a common error message, when having the XML declaration not as the absolutely first thing in the XML file. There must not be any whitespaces or other characters in front of the XML declaration and it has to be in the form as at http://www.w3.org/TR

RE: Error handling in xsp:element...

2002-07-30 Thread Per Kreipke
> > If I do the following in an XSP, the CInclude transformer doesn't > recognize > > the cinclude:include element because it has no namespace associated > with it. > > > > > > This is incorrect. Of course. I thought it might take it from the a parent XSP element but it doesn't. > >name="sr