ESQL doc.

2002-02-14 Thread Olivier Rossel
I read the archives of the mailing-list about ESQL and nested queries. I read an interesting thing about "ancestor" in the declaration of inner requests. But I can find no documentation at all, about that point. Anyone has a link? Any docs has been updated in addition to the page available at: h

Having a function in a XSP.

2002-02-18 Thread Olivier Rossel
Supposing I repaet the same XSP fragment several times in my XSP page. And I wish to "factorize" that with a function which receives parameters, and is a kind of "XSP" fragment. Is it possible? Can I create an inner class with methods inside a XSP?

Uploading files and managing their path.

2002-02-20 Thread Olivier Rossel
I want to use the add-employee.xsp+process-employee.xsp system. But what I want to add is a photo of the employee. SO I add in the form a field that is of type="file". The file is correctly uploaded into the upload-dir. But in the process-employee.xsp, the POSTed data corresponding to the image i

Cocoon with no X11.

2002-02-21 Thread Olivier Rossel
I wonder if pja.jar could be shipped with Cocoon. And the CATALINA_OPTS set this way: CATALINA_OPTS="-Xbootclasspath/a:/path/to/pja.jar \ -Dawt.toolkit=com.eteks.awt.PJAToolkit \ -Djava.awt.graphicsenv=com.eteks.java2d.PJAGraphicsEnvironment \ -Djava.awt.fonts=$JAVA_HOME/jre/lib/fonts

Re: Moving from C1 to C2

2002-02-21 Thread Olivier Rossel
Olivier Richaud wrote: >We think it's time for us to move from C1 to C2. Along other things that we >consider, is i18n that we are force to integrate. > >Now, our system is composed of : >- XSP pages ; >- a logicsheet that supply the main common functionnality shared by the XSP >pages ; >- 1 big

Re: No X or AWT blues

2002-02-22 Thread Olivier Rossel
David Morris wrote: >Vadim & z/i/p Series users, > >Thanks for getting me on track, Cocoon works fine after removing >all references to svg in the various sitemaps and jars. Is this how >you got it working or are you using something like RAWT or PJA? >This leads me to ask whether anyone has us

Re: No X or AWT blues

2002-02-22 Thread Olivier Rossel
Bert Van Kets wrote: > Here's how I installed PJA: > > I copied the PJA jar files to the jre/lib/ext directory and added the > following line to the catalina.sh file > > CATALINA_OPTS='-Xbootclasspath/p:/usr/local/pja/lib/pja.jar > -Dawt.toolkit=com.eteks.awt.PJAToolkit > -Djava2d.font.usePlat

Re: Dynamic (Session) XML --> XSP --> XSL

2002-02-25 Thread Olivier Rossel
Jegadish wrote: > Hi, > I have a serious problem,Which I don't know how to solve.Please help > me to solve this problem. > I have a Xml string (A) put in session by a servlet and a Xsp is > called.( without any XML file pre-existing ) > > > > eg: (A) > > > > > > 1

Encoding of strings retrieved with esql:get-string

2002-02-25 Thread Olivier Rossel
For the moment, all the strings that are retrieved from my database are in UTF-8 format. I wish the to transfrom them into ISO-8859-1. Is it possible? Does this tag accept a "encoding" attribute? - Please check that your quest

Re: Install and run C2+T4 as user, not root!

2002-02-27 Thread Olivier Rossel
> So, *please*, put a note in the installation docs! You may try the tip I provided about pja, to replace the standard AWT of JDK1.3: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=101431100524205&w=2 Please confirm me that the tip is okay, so the Cocoon team updates the 'install' page

Re: Sitemap question

2002-03-04 Thread Olivier Rossel
Stefano Bonnin wrote: >Hi, I have a simple question about cocoon 2 sitemap: > >I defined a simple pipeline for my personal application. > >When I try to run the web application Tomcat return me the following error: > > >** >Apache Tomcat/4.0.1 - HTTP Status 404 - Not Found > >

Re: Sitemap question

2002-03-04 Thread Olivier Rossel
Stefano Bonnin wrote: >ok > >How can I define a very simple pipeline that gets the initial URI and >present a simple HTML file? > you must understand that sitemap.xconf is the only relation between your URL and the files on your disk. There is no direct mapping such as in Apache or usual web ser

Re: Merging Cocoon2 and a webapp, same context

2002-03-04 Thread Olivier Rossel
Florent =?iso-8859-1?Q?Soulière?= wrote: > Hi folks! > > I seeked in the mailing-list archive, but I did not found how to make > cocoon and a webapp using servlets share the same session context. > I am using Tomcat 4.0.1 and Cocoon 2.0.1. Everything used to work well > till I started to try th

Re: Sitemap question

2002-03-04 Thread Olivier Rossel
Luca Morandini wrote: > Stephan, > > excuse me but I don't follow you: if I put check-reload equal to > "yes" in a sub-sitemap mount, is the whole sitemap recompiled > every time a sub-sitemap is changed ? > you can set this attribute only - in cocoon.xconf, inside the declaration tag of the

Session management.

2002-03-05 Thread Olivier Rossel
I want to enable a session anytime a new user arrives on a given page, si I can use the ReadDOMSession/WriteDOMSession later in the website. Is there an action to simply enable a session. No validation, no nothing, just a session opened. It seems that I can use the HttpRequest.getSession() to e

Re: Merging Cocoon2 and a webapp, same context

2002-03-05 Thread Olivier Rossel
Florent Soulière wrote: > OK, I have news with my problem: http://localhost:8080/examples/cocoon > works fine, actually, but every other URL in the form > http://localhost:8080/examples/cocoon/foobar seems to be resolved by > Tomcat instead of Cocoon with its sitemap!!! So for every request I

FOP strange rendering.

2002-03-06 Thread Olivier Rossel
It seems that FOP guys do not know why my DF renders like that: some cells with a background make borders disappear. You can have a look at: http://www.anyware-tech.com/test.pdf Cells labelled "Paragraph", "Reference", "Title" should have black solid borders. Anyone ever had this problem? ---

Re: FOP strange rendering.

2002-03-06 Thread Olivier Rossel
O'Flaherty, Colm wrote: >It looks like the foreground colour is overlaying the background border, for >what that's worth. > >If you remove the foreground colour, does it work?? > I use the background-color="lightgrey" on the . If I remove the attribute, the borders displays correctly. Should I u

Re: upload dir

2002-03-07 Thread Olivier Rossel
Cocoon User wrote: >i'm using cocoon 2.0.rc2 >with tomcat and apache > >how can i change the upload for the upload.xsp? > > >thanks >kounis stavros >osmosis.gr > the upload dir is defined in your WEB-INF/web.xml The upload dir is unique to your cocoon instance.

Re: Yet another newbie boring question, sorry... (mounting -> compila tion error)

2002-03-08 Thread Olivier Rossel
TREGAN Fabien wrote: >I'm trying to mount my subsitemap in C2 : > >-Cocoon example are running well. > >-in cocoon/sitemap.xmap i haded : > > src="caw/sitemap.xmap"/> > > >-in cocoon/caw/sitemap.xmap I have : > > >http://apache.org/cocoon/sitemap/1.0";> > > >

Re: Yet another newbie boring question, sorry... (mounting -> com pila tion error)

2002-03-08 Thread Olivier Rossel
TREGAN Fabien wrote: >Thanks you, I added them all, it worked. > >But I did'nt like that, so I removed them, and it still works... :) > >[WHO sayed that Computer Sciences are Science ?] > You should be very cautious with sitemap caching. Sometimes it caches stuff even if the sitemap has changed.

Re: HTTP 404 error and sitemap setting

2002-03-08 Thread Olivier Rossel
Mamadou Bobo Sylla wrote: >I have cleared the sub-directories of work, started >Tomcat but the error persists. > >By the way both voice-email.xml and >voice-exam-result.xml receive parameters. > >Any other suggestion? > I wonder if the serverpages generator accepts XML files as input. Isn't it su

Re: [FYI] Success Story - Cocoon-based Web-CMS with Vignette-Integration

2002-03-09 Thread Olivier Rossel
Stefan Seifert wrote: >We developed in a big project roughly spanning the past 1,5 years a >Java-based Web Content Management System using Cocoon 2 with >Vignette-Integration. > >The result of the first development phase (the live website) you can see >at >http://www.gruene-fraktion.de (german).

Re: JDK 1.4, cocoon 2.0.2-dev, tomcat 4.0.3

2002-03-11 Thread Olivier Rossel
Claas Thiele wrote: >>Can I start cocoon without X server with 1.4 >> > >Yes, start the JVM with following argument: -Djava.awt.headless=true > >see also: http://java.sun.com/j2se/1.4/docs/guide/awt/AWTChanges.html#headless > > >Claas Thiele > It is very important that such informations are avail

C2-dev and iPlanet

2002-03-12 Thread Olivier Rossel
I tried to launch C2-dev (current CVS) with a old version of iPlanet and JDK1.2.2 I have no web.xml so I use all the default values (it works with Tomcat4+JDK1.3). The servlet does not starts correctly. Here is the error I get: [12/Mar/2002:16:02:53] info (11168): Internal Info: loading servlet

Q? about the pseudo protocol resource:

2002-03-13 Thread Olivier Rossel
I have several XSL files in a jar. I call the main one via the pseudo protocol resource:/path/to/main.xsl The problem is that main.xsl has several xsl:include. How can I handle them? Can i have relative URIs in my foobar.xsl? Will Cocoon automagically understands that the protocol should be res

Streaming PDF.

2002-03-15 Thread Olivier Rossel
I wonder if FOP serializer can stream PDF documents instead of buffering the whole document before sending it. I was told that it is because of a nasty bug in IE/Acrobat plug-in. But the FOP Serializer has already the capability. Is it true? Can this behaviour be enabled? --

Re: cocoon.jar instead of cocoon.war

2002-03-15 Thread Olivier Rossel
Cristina Ulivi wrote: > Hi. > > I'm using Tomcat 4.0.1 & Cocoon 2.0.1 with Windows 2000. > > Now I put my xml pages and jsp pages in > the "\jakarta-tomcat-4.0.1\webapps\cocoon" directory. > > I'd like to put my xml pages and jsp pages in another directory like > "c:\myintranet". > > How c

Re: Serving PDF's

2002-03-20 Thread Olivier Rossel
Phil Blake wrote: > Hi all, > > I want to serve PDF's - nothing special, no generation or > transformation - simply returning an existing pdf from a request. > > So... I added the following to my sitemap: > > > > > > I have a pile of PDF's in the /resources/pdf directory, however,

Re: Running Cocoon on non-compliant servlet engines

2002-03-20 Thread Olivier Rossel
> > >> >>For the same project, I also wrote the BlobSource (see >>http://www.mail-archive.com/cocoon-dev@xml.apache.org/msg12945 >> >.html) for >which I had no feedback up to now. Nobody interested in this ? > > >How can it be used? Are there any use-cases or samples? > I wonder if hsqldb can ha

External graphic, FOP and URIResolver

2002-03-21 Thread Olivier Rossel
Tell me if I am wrong: FOP only accepts standard URLs for external-graphic "src " attribute. file:// http:// are ok. No relative path, and no cocoon pseudo-protocol. Can anyone confirm? Is it possible that FOP uses the URIResolver of Cocoon instead, in order to understand pseudo-protocol (espec

Cinclude accepts only XML as input.

2002-03-21 Thread Olivier Rossel
I want to Cinclude a text retrieved from a clob in a database. My idea was to have a internal pipeline that serialize as text the given clob (generate=serverpages, serialize=text). The internal pipeline works well. Now i want to cinclude it (using the cocoon:// pseudo-protocol). The problem is t

Automatic FAQ

2002-03-22 Thread Olivier Rossel
I am using several mailing-lists. On some of them I am the local guru (cocktails making, sendmail.cf manual writing) and some where I am a newbie (cocoon-users :-) I wonder if there is a piece of software that accepts mails as input and format them for the web. So I can forward it the best mail

Re: Automatic FAQ

2002-03-22 Thread Olivier Rossel
Very good remarks. Especially, the idea of a weblog that points to interesting URLs (web, mailing-list archives or whatever) could be really nice. Keeping reading the list is a heavy task, so a weblog could be nice when you have not a lot of time for it. I am french citizen and daily reads lin

Re: Another problem with Cocoon 2.0.2

2002-03-26 Thread Olivier Rossel
I use C2.0.2 with JDK1.3.1_02 from Sun. I try to generate the xjavadocs. I use the command ./build.sh xjavadocs. It complains that: "Cannot find com.sun.xml.XmlDoclet" I wonder if this class is available by default with JDK1.3? And if this is the correct command to have the javadocs generated co

Power using the sitemap.

2002-03-26 Thread Olivier Rossel
Here is my problem: i have several similar directories structures containing XML datas, for each customers I have (customer1/, customer2/, customer3/) I need to apply the same pipeline on one directory tree, depending on a request parameter: when I have "URL?customer=IBM", i need my pipeline to

Error when XML file for a map:part is absent.

2002-03-27 Thread Olivier Rossel
I make a map:aggregate with two XML files. If both files are ok, the output is ok. If one file is missing, half the output is an exception (a FileNotFound exception). Most of the time, displaying an exception is bad. So I would like the "erroneous" map:part simply be ignored, and the correct

Extracting an XML subtree with a transformer

2002-04-10 Thread Olivier Rossel
I wish to extract the tag "/task/title" from my XML generated. I think that using a XSL for that is a bit heavy, so I would like to use an existing transformer. I tried FragmentExtractorTransformer, but I think the name of the tag that is used for extraction must be declared not in the map:pipeli

Re: dynamically composing cinclude tag

2002-04-15 Thread Olivier Rossel
[EMAIL PROTECTED] wrote: >Hello! > >In my xsp-page the following statemet works correctly: > > > >However I'm required to assign the value of src dynamically. > >Initially I tried this statement which did not work: > >src="(String)((java.util.Map)request.getAttribute("restructComps")).get("u

Re: File Upload using action or any other approach

2002-04-16 Thread Olivier Rossel
> > >> Hello? >> >> Has anyone accomplished to upload files from html forms >> to the server to a specific directory .. > > Yes, I did, with an action. What is the problem? Can you please explain how you did that? Or may be provide us the code, if it is not copyrighted? --

Design advices for XSLT

2002-04-18 Thread Olivier Rossel
I am looking for pieces of advice about writing XSLT in the most efficient and (hopefully :-) reusable way. I found several advices in the book of Michael Kay about XSLT, and am asking to Cocoon users if they can point me to informations about clean design for XSLT. For example, one very import

Re: Aggregation sample

2002-04-19 Thread Olivier Rossel
> > >Anyway, check the logs for better information about the "stylesheet directed >termination" error, most probably there is a typo in your sitemap. > BTW, it seems that the error reporting of Cocoon could be improved. Why doesn't the error page mention the text of the exception? It is available

Re: TreeProcessor performance

2002-05-27 Thread Olivier Rossel
COuld you please give us your bench with a brand new version of the sitemap.xmap (for example, edit it, change a line, save the file, measure the perf with a given processor, and reprocess all that for each processor). On a slow 128MB machine, sitemap compilation takes ages to complete. TreePro

SourceWritingTransformer error

2002-05-28 Thread Olivier Rossel
Can anyone try this HOWTO and tell me if he/she gets the abnormal behaviour described here: http://www.mail-archive.com/cocoon-dev%40xml.apache.org/msg16998.html I would like to know if this bug is known and has been corrected. PS: it is something that is in the scratchpad (I think). If you do

Re: IRC channel

2001-05-28 Thread Olivier Rossel
On Mon, May 28, 2001 at 10:29:57PM +0200, Uli Mayring wrote: > On Mon, 28 May 2001, Viktors Rotanovs wrote: > > > Hi, > > > > noone is there :( > > Does that mean that IRC is unpopular among Cocooners? > > I think the reason is that there are so many IRC networks that you'll > never get all Coc

Cocoon2 with no batik at all.

2001-10-02 Thread Olivier Rossel
Summary for the lucky ones who have a X11 server on their web server: A X11 display i required in order to initialize batik correctly. A X11 display is typically not available on a webserver machine. So there are various tricks to obtain one (mainly a virtual X11 server) Of course, my administra

Fixes for the X11 problem are failing!!!

2001-10-03 Thread Olivier Rossel
Gianugo Rabellino wrote: >Anthony, > >>If I manage to solve the problem, I'll get back to you, if not - has >> >anyone > >>got a solution - no way I can install X on our servers. >> > >I think you'd better start with a fresh and sitemap: take out not only >the component references (including PDF)