Re: map:mount src="some.xmap" makes cocoon.sendPage fail

2005-08-30 Thread Antonio Fiol Bonnín
The fact is that the same code leads to different results depending on whether I use "./" or not on the map:mount element src attribute. If I use it, "pipeline" means "cocoon:/pipeline". If I don't, "pipeline" means nothing, as neither "cocoon:/pipeline" nor "cocoon://pipeline" are called, if I did

NullPointerException using cron block

2005-08-30 Thread Antonio Fiol Bonnín
Hello, Using Cocoon 2.1.7 I defined a cron job in cocoon.xconf, created the pipeline, which calls a function. The function does a sendPage, and the called pipeline calls an action. The result: the log is populated with an exception like the following on every execution of the cron job. java.lang

Re: What happen to swf block ?

2005-08-30 Thread Marc Salvetti
Thanks for the pointer Joerg, i did found a swf sample in the hello world, but unfortunately, the .fla file that comes with the swf doesn't seem to be compatible with flash mx (unexpected file format) So right now, all i can see is a swf file that display a big blue question mark on playing,

Re: Cookies in flow by name

2005-08-30 Thread JD Daniels
2.1.7 it seems cocoon.request.getCookieMap().get('mycookie').value will work. I peeked at the map javadoc: http://java.sun.com/j2se/1.4.2/docs/api/java/util/Map.html As an aside, I had thought there were some talks about making all the flow stuff work like parent.object.value instead of get

Re: Cookies in flow by name

2005-08-30 Thread Mark Lundquist
On Aug 30, 2005, at 5:37 PM, JD Daniels wrote: cocoon.request.getCookieMap()['mycookie']; cocoon.request.getCookieMap(); Both end up undefined - yet the cookie does exist. I am also using the cookie to choose which xsl to use in my sitemap: src="context://xsl/document2{request:cookieMap/myco

Re: Cookies in flow by name

2005-08-30 Thread JD Daniels
grrr.. I'm sorry guys this has been very frustrating for me :( Thank you both for answering :) JD Daniels wrote: cocoon.request.getCookieMap()['mycookie']; cocoon.request.getCookieMap(); Both end up undefined - yet the cookie does exist. I am also using the cookie to choose which xsl to use

Re: Cookies in flow by name

2005-08-30 Thread JD Daniels
cocoon.request.getCookieMap()['mycookie']; cocoon.request.getCookieMap(); Both end up undefined - yet the cookie does exist. I am also using the cookie to choose which xsl to use in my sitemap: src="context://xsl/document2{request:cookieMap/mycookie/value}html.xsl"> {request:cookieMap/mycooki

Re: Cookies in flow by name

2005-08-30 Thread Mark Lundquist
On Aug 30, 2005, at 3:17 PM, JD Daniels wrote: Well, I have not ever looked at input modules to this point. I suppose I could look into them and see, but it seems to me that getting a cookie by its name should be a one line trivial thing. Hi JD, I think you should be able to write

Re: Missing classes building 2.1.7

2005-08-30 Thread Peter Flynn
Joerg Heinicke wrote: Sorry, but I don't know any of these errors, so I can't help you with them directly. Only the suggestion to build a Cocoon with the offending blocks (looks like xmldb and slide) excluded. Nope...I just downloaded a fresh Tomcat 5.5.9 from Apache and installed that. Coco

[ANN] Forwarding Servlet Generator/Transformer

2005-08-30 Thread Jon Merriman
I have been sitting on this code for some time now and I would like to get some feedback on it. In a nutshell, it allows servlets to be invoked using the container's RequestDispatcher method and the result parsed as SAX events. My motivation was to create a quick-and-dirty way to Spring and

Re: Missing classes building 2.1.7

2005-08-30 Thread Joerg Heinicke
On 30.08.2005 23:57, Peter Flynn wrote: Having tracked down the tomcat logs to /var/log/tomcat5 (thank you Red Hat), we see: (this was the day before, when I did a build webapp) INFO: Installing web application at context path /cocoon from URL file:/var/lib/tomcat5/webapps/cocoon - Reading s

Re: What happen to swf block ?

2005-08-30 Thread Joerg Heinicke
On 30.08.2005 21:07, Marc Salvetti wrote: All this discussion about laszlo reminded me that there is a swf (that"s for shockwave flash i guess) block that is deprecated. Does anyone know if another block has replaced it ? http://marc.theaimsgroup.com/?t=10862662007&r=1&w=4 http://marc.th

Re: Missing classes building 2.1.7

2005-08-30 Thread Peter Flynn
Joerg Heinicke wrote: description The requested resource (Servlet Cocoon is not available) is not available. Apache Tomcat/5.0 Hmm, strange. You probably have to look into the log files of Tomcat now (if Cocoon has not been started there should not be Cocoon logs). Having tracked down the

Re: Missing classes building 2.1.7

2005-08-30 Thread Peter Flynn
Mark Lundquist wrote: It's "cocoon.sh servlet". My fault. I keep forgetting to add the .sh to all the script calls... OK Cocoon runs fine at port . Now to find the tomcat logs. ///Peter - To unsubscribe, e-mail: [EMAIL

Re: directory generator depth 2 (sort + regexp)

2005-08-30 Thread Joerg Heinicke
On 30.08.2005 11:57, Reinhard Haller wrote: Hi, I want to collect a set of the newest news snippets out of a nested directory structure like maindir --+--subdir1--+--file1.xml | +--file2.xml +--subdir2-file3.xml +--subdir3--+--file4.xml

Re: Cookies in flow by name

2005-08-30 Thread JD Daniels
Well, I have not ever looked at input modules to this point. I suppose I could look into them and see, but it seems to me that getting a cookie by its name should be a one line trivial thing. If I don't figure it out, I guess I might have to use input modules :P JD Aurélien DEHAY wrote: Hell

Re: Missing classes building 2.1.7

2005-08-30 Thread Joerg Heinicke
On 30.08.2005 02:08, Peter Flynn wrote: (Actually I meant, when the .war file was distributed :-) ;-) Just did that. I was hoping it would work when I hit up localhost:8080 for the tomcat home page prior to trying localhost:8080/cocoon and the disk light went on solid and I could hear the d

Re: Cookies in flow by name

2005-08-30 Thread Aurélien DEHAY
Hello. JD Daniels a écrit : > it seems i can access a cookie in flow with > cocoon.request.getCookies()[1].value > > however, not all pages i have need a user logged in, which creates its > own jsessionid cookie. > > so sometimes i need cocoon.request.getCookies()[0].value and other times > i ne

Cookies in flow by name

2005-08-30 Thread JD Daniels
it seems i can access a cookie in flow with cocoon.request.getCookies()[1].value however, not all pages i have need a user logged in, which creates its own jsessionid cookie. so sometimes i need cocoon.request.getCookies()[0].value and other times i need cocoon.request.getCookies()[1].value.

What happen to swf block ?

2005-08-30 Thread Marc Salvetti
All this discussion about laszlo reminded me that there is a swf (that"s for shockwave flash i guess) block that is deprecated. Does anyone know if another block has replaced it ? Marc - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Marc Salvetti
Yes but if you do it that way, you don't need a RIA anymore, and using Laszlo is even worse than using anything else as your whole page has to be refreshed and in the case of Laszlo, recompiled. It's very important to understand that Laszlo-style RIA's and Cocoon-generated HTML pages use very di

Re: SVG > SVG via xslt

2005-08-30 Thread Wendell Piez
Hi Lincoln, At 09:47 AM 8/30/2005, you wrote: I am trying to generate an SVG file from an Adobe illustrator SVG file via XSLT/Cocoon. I have spent 1.5 days on this to no avail. Here is a basic Adobe illustrator generated SVG: "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"; [

Re: Cocoon and OpenLaszlo

2005-08-30 Thread ian . d . stewart
AJAX is an acronym for Asynchronous Javascript and XML. The idea is that instead of submitting a request to a remote process (CGI script, Java Servlet, etc) and displaying the results as a new page, you send an asynchronous request to an XML resource, using the HttpXMLRequest object, in response

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Sebastien Arbogast
> Afaik, Ajax is a way to render content on the client side, a bit what > is done by the cocoon pipelines. Not really ! AJAX is a set ot technologies and practices built around XML and JavaScript (AJAX means Asynchronous JAvascript and XML) that makes it possible to develop something that looks li

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Yves Vindevogel
Afaik, Ajax is a way to render content on the client side, a bit what is done by the cocoon pipelines. On 30 Aug 2005, at 16:56, Marc Salvetti wrote: Sebastien Arbogast a écrit : Yes but do you think it's really possible to design your logical documents to fit such different paradigms as the one

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Yves Vindevogel
You simply start with a definition in Laszlo. For creating a simple HTML, you just write an XSL around the Laszlo file. It's some work, but at least you have a decent start, given that you have all the components in Laszlo that you must render to html. At least you know where you start. On 30 Aug

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Yves Vindevogel
You could do that (xhtml, ...) but I would simply put Flash as a requirement to see it for the thing i want to do. You can do anything with Cocoon before you finally put it to Laszlo. Indeed, translations, but also different content (eg. prices) based upon the login I find 2 seconds acceptab

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Yves Vindevogel
That is what I would use it for, to create a last transformer in my pipeline to create the rich content and then send it to the client in a simple html serializer On 30 Aug 2005, at 03:39, Marc Salvetti wrote: Hello, I see it also like that, cocoon is a MVC framework that handles easily multiple

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Marc Salvetti
Sebastien Arbogast a écrit : Yes but do you think it's really possible to design your logical documents to fit such different paradigms as the ones of HTML and Laszlo ? The main discrepancy I see is that an HTML page must be built once and for all (except if it uses AJAX to load data but it's

Re: SVG > SVG via xslt

2005-08-30 Thread Christoph Hermann
Lincoln Mitchell schrieb: Hello, > I am trying to generate an SVG file from an Adobe illustrator SVG file > via XSLT/Cocoon. > If I delete the DOCTYPE (and the xmlns’ on the svg tag) then all works > fine – but I want the file to stay intact – so that’s not an option. How about stripping the na

Re: Several Crawlers with different configurations / Lucene Index

2005-08-30 Thread Joshua . Schairbaum
Christoph, I'm not sure about configuring a second indexer/crawler in the cocoon.xconf, but I do know how to restrict the path. When you configure the crawler, add the element with the path to exclude in the element. For example, this would exclude all files within folders entitled 'search':

SVG > SVG via xslt

2005-08-30 Thread Lincoln Mitchell
I am trying to generate an SVG file from an Adobe illustrator SVG file via XSLT/Cocoon.   I have spent 1.5 days on this to no avail.   Here is a basic Adobe illustrator generated SVG:           ]>      overflow="visible" enable-background="" 0

Re: Pass a parameter from generator/transformer to the sitemap

2005-08-30 Thread Nick Goupinets
Hi David, You are correct, but in this case I will need a single XSL for 5 (for now, may be more in the future - TEI, HTML, DC, etc.) different XML formats. It's also possible to have an xsl that imports other xsls or something like that. It may get very complicated. I am sure though, that f

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Sebastien Arbogast
> So i don't think you have to make a choice, you just have to structure > your logical documents thinking a bit about how laszlo works. Yes but do you think it's really possible to design your logical documents to fit such different paradigms as the ones of HTML and Laszlo ? The main discrepancy

Re: Multiple ancestor queries on the same level not supported by SQLTransformer?

2005-08-30 Thread Bertrand Delacretaz
Le 30 août 05, à 13:21, Torsten Schlabach a écrit : ...yes, you're right, it's fixed in a 2.1.8-dev (BRANCH_2_1_X aka trunk)... It's not "aka trunk": BRANCH_2_1_X contains the (fairly stable) 2.1.8-dev code while trunk contains the (still moving a lot) 2.2 code, they are not the same thing.

RE: Multiple ancestor queries on the same level not supported by SQLTransformer?

2005-08-30 Thread Torsten Schlabach
Niels, yes, you're right, it's fixed in a 2.1.8-dev (BRANCH_2_1_X aka trunk). The fix did not make it for 2.1.7, so I moved my project to 2.1-trunk. (Another attempt to work on a stable version failed ;-) ). The fix is not in 2.2 though. Regards, Torsten > Torsten Schlabach wrote: >> Niels, >>

Several Crawlers with different configurations / Lucene Index

2005-08-30 Thread Christoph Hermann
Hello, i wanted to know if there is a way to configure different indexer/crawler (in cocoon.xconf?) so that i.e. crawler one only crawls urls under a certain directory i.e. http://www.example.com/foo/bar (the crawler would NOT visit example.com/baz/boo) and crawler two crawls the entire site (exam

directory generator depth 2 (sort + regexp)

2005-08-30 Thread Reinhard Haller
Hi, I want to collect a set of the newest news snippets out of a nested directory structure like maindir --+--subdir1--+--file1.xml | +--file2.xml +--subdir2-file3.xml +--subdir3--+--file4.xml +--file5.xml the pipeline match

RE: Multiple ancestor queries on the same level not supported by SQLTransformer?

2005-08-30 Thread Niels van Kampenhout
Torsten Schlabach wrote: > Niels, > > I ran into the same problem. > > Did you ever get an answer or were you able to figure it out yourself? > > Regards, > Torsten No I did not get an answer. Since performance was not really an issue in that particular case, I used an extra query as a workaro

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Marc Salvetti
Sebastien Arbogast a écrit : For me, the main difficulty i see is to have underlying "logical" documents that fit with both lazlo and html view. The problem will always be to match this or this lazlo feature (like window or layout) in html+css. Proably a lot of headaches here, but really worth

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Sebastien Arbogast
> For me, the main difficulty i see is to have underlying "logical" > documents that fit with both lazlo and html view. The problem will > always be to match this or this lazlo feature (like window or layout) in > html+css. Proably a lot of headaches here, but really worth it :) You're right. It w

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Marc Salvetti
True, i tried a few exemples and the first generation is really slow for just a hello world :-\ the good this is that the cocoon caching system seems to work fine with lazlo, so depending on how the pipes are designed and optimized for caching, this can remain a small problem. For me, the main d

Re: Cocoon and OpenLaszlo

2005-08-30 Thread Sebastien Arbogast
> I see it also like that, cocoon is a MVC framework that handles easily > multiples V, why not using lazlo for at least one of the views of the > webapp ? Exactly ! That could make accessibility go a step further : you make a RIA V and for those who don't want or don't like Flash, you just make a