Returning a specific HTTP status from XSP

2002-07-30 Thread Chris Warr
Hi, Is it possible to jump out of a pipeline from within an xsp and return a specific HTTP status code? For instance under certain circumstances I want to return 304 (not modified). Chris. - Please check that your question

Multiple GETs for a PDF

2002-07-30 Thread Chris Warr
Hi, Some browsers request a PDF with multiple GETs. The following article describes it http://support.microsoft.com/default.aspx?scid=kb;EN-US;q293792 I'm encountering this problem because I don't let a PDF be generated twice. So, for the first GET cocoon generates the PDF and returns it,

Cocoon statistics

2002-07-30 Thread Matthew Langham
Hi, I would be interested in getting some statistics on Cocoon downloads. Can someone with power give an overview as to the number of downloads of the different Cocoon versions ... by month ... or whatever is available. Many thanks Matthew -- Open Source Group Cocoon { Consulting,

multiple selection query in XSP

2002-07-30 Thread Sreenivasan N.
Hi cocoon lovers I am trying to implement a multi select list box where user select 1 or 2 or more values which is passed as a query to Oracle database to return a output. For Example a multiselect listbox which contains projectnames populated from oracle database. When a user select the

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

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

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 are they? they are

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 map:call resource=xxx/ calls in a single matcher. Fragments from my sitemap: [...] map:resources map:resource name=aspetto-finale map:transform src=_xsl/style.xsl map:parameter name=nome

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 all

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

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.,

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

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 side

OSCON Heads up

2002-07-30 Thread Matthew Langham
Hi, if you were following my weblog then you will already have seen my notes on the OReilly Open Source Convention. If not - then now's the time to go back and read :-) (http://radio.weblogs.com/0103021/). Here's a brief summary from a Cocoon perspective. To start off it seems that Cocoon is

RE: Cocoon statistics

2002-07-30 Thread Matthew Langham
This was meant for cocoon-dev. Sorry. M. -Original Message- From: Matthew Langham [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 30, 2002 8:52 AM To: [EMAIL PROTECTED] Subject: Cocoon statistics Hi, I would be interested in getting some statistics on Cocoon downloads. Can someone

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 obviously

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 a problem transforming big xml

Re: esql - oracle stored procedure returns resultset

2002-07-30 Thread Frank Taffelt
ok second try with: esql:call {call sp_get_stocks(esql:parameter direction=intype=Intxsp:expr20/xsp:expr/esql:parameter) } /esql:call esql:call-results esql:row-results outesql:get-string column=1//out /esql:row-results /esql:call-results results in : Error executing

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-usersw=2r=1s=global+variab lesq=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 question has

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 map:call resource=xxx/ calls in a single matcher. Fragments from my sitemap: [...] map:resources map:resource name=aspetto-finale map:transform

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: esql:call {call sp_get_stocks(esql:parameter direction=intype=Intxsp:expr20/xsp:expr/esql:parameter) } /esql:call esql:call-results esql:row-results outesql:get-string column=1//out

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 sink (or

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;

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: map:match pattern=**.xml map:generate src={1}.xml/ !-- Here:

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

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,

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 direct a

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

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

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: map:match pattern=abc map:act set=employee map:generate type=serverpages src=abc.xsp / map:transform

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. map:match pattern=**.xml map:generate

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: 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

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 map:actions map:action logger=sitemap.action.xsp-action name=xsp-action src=org.apache.cocoon.acting.ServerPagesAction/ /map:actions 2. Site matcher map:match

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 much syntax

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 the

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,

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 page,

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

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. xsp:element name=cinclude:include xsp:attribute name=srcxsp:exprstrURL/xsp:expr/xsp:attribute /xsp:element I had to change it to be:

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, July

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 action. Thank you.

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: map:sitemap

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

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

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. xsp:element name=cinclude:include This is incorrect. xsp:attribute

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 ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:fo=http://www.w3.org/1999/XSL/Format; xmlns:lxslt=http://xml.apache.org/xslt;

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 map:act, to be skipped. I didn't think this was my problem because in sample code 'employee.xsp' the action is not

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

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

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. xsp:element name=cinclude:include This is incorrect. Of course. I thought it might take it from the a parent XSP element but it