Re: MENU JAVASCRIPT

2005-04-05 Thread Bertrand Delacretaz
Le 5 avr. 05, à 17:33, pierrick henry a écrit : ...Est ce que qqun a déjà essayé de transfomer du javascript à partir d'un fichier js et pas d'un fichier xsp ou xml?.. Tu pourrais essayer le PatternTransformer du bloc chaperon, il permet de générer des éléments XML à partir de patterns (regexp)

Portal et enctype=multipart/form-data

2005-04-05 Thread Philippe Guillard
Bonjour, J'ai soumis cette question sur les autres listes cocoon sans succes, alors je pense profiter du francais pour pouvoir sans doute mieux m'expliquer, et tenter si ce n'est obtenir une solution, une orientation! Mon mail precedent etait le suivant

[Annonce] Eclipse Lepido, un IDE opensource pour Cocoon

2005-04-05 Thread Sylvain Wallez
Bonjour, C'est avec grand plaisir que je vous fais part de la création du projet Eclipse Lepido [1], qui vise à construire un atelier opensource pour Cocoon, basé sur la plate-forme Eclipse. Le but de Lepido est aussi bien d'aider les débutants que d'apporter des outils pour être plus

Re: Portal et enctype=multipart/form-data

2005-04-05 Thread Jean-Christophe Kermagoret
Salut Philippe, J'ai eu ce pb cet après-midi et j'ai vu tes mails. J'ai effectué la correction faite par Nicole, consistant à rajouter un test sur la valeur d'enctype. Depuis, ca marche super. As-tu fait cette manip ? http://www.mail-archive.com/users@cocoon.apache.org/msg24454.html Elle

Re: Portal et enctype=multipart/form-data

2005-04-05 Thread Philippe Guillard
Un grand grand merci! Sans raison je n'avais pas essaye! Phil Jean-Christophe Kermagoret wrote: Salut Philippe, J'ai eu ce pb cet après-midi et j'ai vu tes mails. J'ai effectué la correction faite par Nicole, consistant à rajouter un test sur la valeur d'enctype. Depuis, ca marche super. As-tu

Re: [Auth-FW] Edit authentication/data nodes

2005-04-05 Thread Jan Hoskens
Hi, When I first used cocoon, I had xsp's all around. If I remember correctly, I did something like this to get the value from the authentication session: xsp:page xmlns:xsp=http://apache.org/xsp; xmlns:xsp-session-fw=http://apache.org/xsp/session-fw/1.0; xsp:logic String email

cocoon-protocol in document-function

2005-04-05 Thread Jens Reufsteck
Hi, I've got problems with the cocoon-protocol used inside the document-function, e.g.: xsl:variable name=show-cover select=document('cocoon:/config')/config/cover/@show / The intention is to fetch a dynamically produced configuration-parameter generated by the following pipeline:

Re: cocoon-protocol in document-function

2005-04-05 Thread Geert Josten
Hi there, Have seen similar messages before, but haven't experienced the problem myself. Tried searching the list archive? I can at least advice looking in the logfile of Tomcat for messages. It could be as 'simple' as an OutOfMemory problem... :-P HTH, Geert Jens Reufsteck wrote: Hi, I've got

Design note - Building a template mechanism

2005-04-05 Thread Elad Messing
Title: Design note - Building a template mechanism Hello All ! I am now in the design phase of the web-application I am working on. The application will have a fixed structure - header, footer, content in the middle, and menu on the side - and I am looking for the best practice to build

Re: Design note - Building a template mechanism

2005-04-05 Thread gounis
hi elad i'm using this approach to create static web static web sites the goals are: - yu have one layout file (.xhtml). then i get the content form each request (requested web page) and put it inside this layout (now i'm close to have pages (web requests) that make an exception and use an

Re: XPath tokenize

2005-04-05 Thread Ben Pope
Hi Geert, Thankyou for your response, I would have likely swapped out the .jar file and got stuck! This method looks more preferred, so I shall try that later. Hopefully it'll get me up and running. Thanks, Ben. Geert Josten wrote: Hi Ben, You will need a XSL parser that supports XSL 2.0.

AW: Design note - Building a template mechanism

2005-04-05 Thread Elad Messing
Hello Stavros and all Thanks for the reply. I think I understand the usage of it as you explained in the TemplateBasedWebSite wiki page. I also found the Othello example in the Scratchpad. Currently I am studying the wiki example, trying to build the same in my

Re: AW: Design note - Building a template mechanism

2005-04-05 Thread gounis
On Tue, 5 Apr 2005, Elad Messing wrote: Hello Stavros and all Thanks for the reply. I think I understand the usage of it as you explained in the TemplateBasedWebSite wiki page. I also found the Othello example in the Scratchpad. Currently I am studying the wiki example,

2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread Philipp Suter
Hi I am having this simple but serious problem: I am loading XML from a XML-Database and want to include some parts of the loaded Document into the XSP-page (respectivelly its result). How can I include the XML, which I get from a Javaclass by calling one of its functions? I tried to include it

2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread Philipp Suter
Hi I am having this simple but serious problem: I am loading XML from a XML-Database and want to include some parts of the loaded Document into the XSP-page (respectivelly its result). How can I include the XML, which I get from a Javaclass by calling one of its functions? I tried to include it

Re: 2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread gounis
can you think a different aproach aggregate the xml output from your xsp with your xml and do some xsl transformations. or make your xsp to generate xml that include (xinclude or cinclude) other xml fragments and use [c/x]include transformer --stavros On Tue, 5 Apr 2005, Philipp Suter

Re: 2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread Ben Pope
Philipp Suter wrote: Hi I am having this simple but serious problem: I am loading XML from a XML-Database and want to include some parts of the loaded Document into the XSP-page (respectivelly its result). How can I include the XML, which I get from a Javaclass by calling one of its functions?

AW: AW: Design note - Building a template mechanism

2005-04-05 Thread Elad Messing
I understand. So - I would very much like to learn the new implementation ! A demo site could be great ! In Parallel - I am going through the example in the wiki and finding some errors in code. What do you think about me adding the fixes to make the example work by copy paste ? Is it needed ?

Re: 2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread Andre Juffer
Ben Pope wrote: Philipp Suter wrote: Hi I am having this simple but serious problem: I am loading XML from a XML-Database and want to include some parts of the loaded Document into the XSP-page (respectivelly its result). How can I include the XML, which I get from a Javaclass by calling one of

Re: AW: AW: Design note - Building a template mechanism

2005-04-05 Thread gounis
On Tue, 5 Apr 2005, Elad Messing wrote: I understand. So - I would very much like to learn the new implementation ! A demo site could be great ! In Parallel - I am going through the example in the wiki and finding some errors in code. What do you think about me adding the fixes to make

Pass a request paramter to a custom generator

2005-04-05 Thread Mattom
hi all ! Sorry if i missed some documentation, but I after spending an hour on trial and error... How do i pass a request parameter to a custom generator in a pipeline ? I tried (see schnirkel and schnirkel2), for a link that is: viewGeneric.dhtml?xfacename=testit map:match

Re: 2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread Mattom
Write a custom generator, I followed the tutorial at http://people.apache.org/~reinhard/2.2/tutorial/tutorial-rmi-generator.html or take my code snippet as example (stripped some code that you wont need, i am not sure wether this is compileable) package at.schnirkel.cocoon.generator.test;

Re: Pass a request paramter to a custom generator

2005-04-05 Thread Upayavira
Mattom wrote: hi all ! Sorry if i missed some documentation, but I after spending an hour on trial and error... How do i pass a request parameter to a custom generator in a pipeline ? I tried (see schnirkel and schnirkel2), for a link that is: viewGeneric.dhtml?xfacename=testit map:match

Re: Pass a request paramter to a custom generator

2005-04-05 Thread Jorg Heymans
Syntax is {request-param:xfacename} http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html#RequestParameterModule HTH Jorg Mattom wrote: hi all ! Sorry if i missed some documentation, but I after spending an hour on trial and error... How do i pass a request parameter to a custom

Re: 2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread Philipp Suter
Dankeschön! This is exactely what I wanted to try next.. :) Hopefully you'll find out how to pass a parameter.. cheers ph Mattom wrote: Write a custom generator, I followed the tutorial at http://people.apache.org/~reinhard/2.2/tutorial/tutorial-rmi-generator.html or take my code snippet as

Re: Pass a request paramter to a custom generator

2005-04-05 Thread Jan Hoskens
try map:parameter name=schnirkel2 value={request-param:xfacename} / that should work. Look for inputmodules in the docs: http://wiki.apache.org/cocoon/InputModules?highlight=%28inputmodules%29 Kind Regards, Jan Mattom wrote: hi all ! Sorry if i missed some documentation, but I after spending an

Re: 2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread gounis
On Tue, 5 Apr 2005, Philipp Suter wrote: Thanks for all the quick answers! But what I am looking for is generating an xml-document with a java-class I can further process in my sitmap. My DB is wrapped and I need to filter the data. Therefore the only logical, expandable and clean

Re: 2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread Philipp Suter
Cleaner? well maybe, but it is tremendously slow (too many disc interactions). I will solve my problem with a custom generator. Cheers ph [EMAIL PROTECTED] wrote: On Tue, 5 Apr 2005, Philipp Suter wrote: Thanks for all the quick answers! But what I am looking for is generating an xml-document

AW: AW: AW: Design note - Building a template mechanism

2005-04-05 Thread Elad Messing
Hi again. I have added the fixes. I am not sure that they are all correct, as I am quite a newbie.. They do however make it work :) Feel free to remove what is not needed. Hope it will help somebody someday - like it helped me.. Elad -Ursprngliche

Re: AW: AW: AW: Design note - Building a template mechanism

2005-04-05 Thread gounis
On Tue, 5 Apr 2005, Elad Messing wrote: Hi again. I have added the fixes. I am not sure that they are all correct, as I am quite a newbie.. They do however make it work :) Feel free to remove what is not needed. Hope it will help somebody someday - like it helped me..

Re: [Auth-FW] Edit authentication/data nodes

2005-04-05 Thread Philippe Guillard
Thanks a lot Jan, Good idea to use another session context and not the one used by authentication framwork for the elements i need to save. I also thought none of the set functions you shown here where available, i'll try. Just one question reminds: doc says session framwork provides the

Re: [Auth-FW] Edit authentication/data nodes

2005-04-05 Thread Philippe Guillard
Thanks a lot Yan, Good idea to use another session context and not the one used by authentication framwork for the elements i need to save. I also thought none of the set functions you shown here where available, i'll try. Just one question reminds: doc says session framwork provides the

Bind variables not really bind variables?

2005-04-05 Thread Gerard Pille
Hallo, our developers use the following syntax: esql:execute-query esql:query select tk.taalcde_code as taalcode, tk.flg_moedtaal as moedertaal, tk.eval_bgrp, tk.eval_lezen, tk.eval_schrij, tk.eval_sprk from talenkennis tk, taalcodes tc where tc.code =

Re: Problem with stylesheets

2005-04-05 Thread Michel Erard
Hi, thanks for your mail. it works now a bit better, but not yet perfect :-( In the sitemap I use this: map:transform type=forms / map:transform type=xalan src=stylesheets/layout.xsl / map:transform type=xalan src=resources/forms-samples-styling.xsl / map:serialize type=xhtml /

Re: [Auth-FW] Edit authentication/data nodes

2005-04-05 Thread Jan Hoskens
Philippe Guillard wrote: Thanks a lot Jan, Good idea to use another session context and not the one used by authentication framwork for the elements i need to save. I also thought none of the set functions you shown here where available, i'll try. Just one question reminds: doc says session

RE: 2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread Armaz Mellati
Hi I am surprised why nobody suggestet using the util:include-expr expr=the_text_presentation_of_your_xml/ in your xsp ? It is one of the functions of the XSP UTIL stylesheet. You just have to include its namespace at the begining of your XSP (like any other Logicsheet you use)

Re: [Auth-FW] Edit authentication/data nodes

2005-04-05 Thread Philippe Guillard
Thanks! Jan Hoskens wrote: Philippe Guillard wrote: Thanks a lot Jan, Good idea to use another session context and not the one used by authentication framwork for the elements i need to save. I also thought none of the set functions you shown here where available, i'll try. Just one question

RE: 2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread Armaz Mellati
I actually ment util:include-expr expr=a_java_variable_containing_the_text_presentation_of_your_xml/ ,Armaz -Original Message- From: Armaz Mellati [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 05, 2005 3:25 PM To: users@cocoon.apache.org Subject: RE: 2.1[.7]: XSP: Include

Re: Problem with stylesheets

2005-04-05 Thread Jan Hoskens
So everything's fine but the scripttags? They are not appearing in the html source? A few things to check: - it's possible that the xsl matcher doesn't match the correct namespace. If nothing is appearing between the head section, try to add the namespace in the forms stylesheet template(look in

build error, cocoon 2.1.7, ant 1.6.2, linux

2005-04-05 Thread Marc Salvetti
Hello, my isp have the error ./build.sh Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher when trying to build cocoon 2.1.7 on linux Redhat enterprise 3.0 he has ant 1.6.2 installed, does anyone know about this error ? Thanks, Marc

Do not display all my errors in the flow

2005-04-05 Thread Lionel Crine
Hi all, I have a process which make an error report (using xinclude). Precisely, I upload files from a directory and I check their validity (DTD). I would like to stop the process (in order to not load all the errors) if there are too many wrong documents and then display only the first 20

Re: build error, cocoon 2.1.7, ant 1.6.2, linux

2005-04-05 Thread Upayavira
Marc Salvetti wrote: Hello, my isp have the error ./build.sh Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher when trying to build cocoon 2.1.7 on linux Redhat enterprise 3.0 he has ant 1.6.2 installed, does anyone know about this error ? Try export

Re: build error, cocoon 2.1.7, ant 1.6.2, linux

2005-04-05 Thread Jorg Heymans
Upayavira wrote: Marc Salvetti wrote: Hello, my isp have the error ./build.sh Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher when trying to build cocoon 2.1.7 on linux Redhat enterprise 3.0 he has ant 1.6.2 installed, does anyone know about this

Re: build error, cocoon 2.1.7, ant 1.6.2, linux

2005-04-05 Thread Upayavira
Jorg Heymans wrote: Upayavira wrote: Marc Salvetti wrote: Hello, my isp have the error ./build.sh Exception in thread main java.lang.NoClassDefFoundError: org/apache/tools/ant/launch/Launcher when trying to build cocoon 2.1.7 on linux Redhat enterprise 3.0 he has ant 1.6.2 installed, does anyone

Re: cocoon-protocol in document-function

2005-04-05 Thread Jens Reufsteck
Hi Geert, I can at least advice looking in the logfile of Tomcat for messages. It could be as 'simple' as an OutOfMemory problem... :-P Sorry, haven't looked close enough into core.log - the requested pipeline was serialized as html instead of xml. The document-function seems to be quite

Re: Prepopulating

2005-04-05 Thread André Thénot
On Apr 4, 2005, at 9:06, Andre Juffer wrote: You can also access the database directly in your script. You could return some object from persistence, which you could use to populate your bean. Maybe it is possible to use that object as the bean for the form (not tried). IIRC, direct database

Could some help in this!

2005-04-05 Thread fadi qutaishat
Hi all, I have the following situation : map:pipeline map:match pattern="login" map:generate src=""/ map:transform src="" map:parameter name="use-request-parameters" value="true"/ /map:transform map:transform type="sql" map:parameter name="use-connection" value="newdb"/ /map:transform

Re: redirect-to result of a transformation

2005-04-05 Thread [EMAIL PROTECTED]
Adam Ratcliffe wrote: Try cocoon.processPipelineTo(uri, null/*no bizdata*/, output), sorry I wrote the example from memory. The link to the relevant documentation is: http://cocoon.apache.org/2.1/userdocs/flow/api.html#processPipelineTo Hi Adam, Thanks a lot for your attention. I'm getting closer

Re: AW: AW: AW: Design note - Building a template mechanism

2005-04-05 Thread gounis
hi i have update this wiki page http://wiki.apache.org/cocoon/TemplateBasedWebSite now there is an new sample as attachement regards stavros On Tue, 5 Apr 2005 [EMAIL PROTECTED] wrote: On Tue, 5 Apr 2005, Elad Messing wrote: Hi again. I have added the fixes. I am not sure

Re: Could some help in this!

2005-04-05 Thread Philippe Guillard
Hum, Maybe using redirection. But it seems you want to show a login page and then put user info in the session : you maybe should use Authantication framework? Phil fadi qutaishat wrote: Hi all, I have the following situation : map:pipeline map:match pattern=login map:generate

Re: Could some help in this! - Thanks Phil

2005-04-05 Thread fadi qutaishat
Thanks Phil, As you saidI want to display the login page first thencreating the session. Actually I was trying to avoid using the Authentication fwbut it seems it catches me every time !!!. Many thanks again. Fadi Do you Yahoo!? Better first dates. More second dates. Yahoo! Personals

[Announce] Eclipse Lepido, and opensource IDE for Apache Cocoon

2005-04-05 Thread Sylvain Wallez
Folks, I'm very pleased to announce the creation of the Eclipse Lepido project [1], which aims at building an opensource tooling for Apache Cocoon based on the Eclipse platform. The purpose of Lepido is both to help newcomers to more easily get started, and to bring a number of tools to be

Re: build error, cocoon 2.1.7, ant 1.6.2, linux

2005-04-05 Thread Mark Eggers
On Tue, 2005-04-05 at 17:13 +0200, Jorg Heymans wrote: From build.sh : # - Ignore system CLASSPATH variable OLD_CLASSPATH=$CLASSPATH unset CLASSPATH CLASSPATH=`echo lib/endorsed/*.jar | tr ' ' $S` export CLASSPATH # - Use Ant shipped with Cocoon. Ignore installed in the system

Re: installing 2.1.7, excalibur-datasource-1.2.0.jar missing

2005-04-05 Thread Rolf Schumacher
Jorg Heymans wrote: Rolf Schumacher wrote: Is this information of concern to someone? I installed 2.1.7 with several blocks turned of and with jdk1.5 for compilation by ./build.sh webapp on debian linux. First start of Cocoon with Tomcat 5.5.7 yield to a java stacktrace, telling me that

Re: build error, cocoon 2.1.7, ant 1.6.2, linux

2005-04-05 Thread Dan Durkin
this maybe a problem with the ant file can you try and specify --noconfig looks like without this ant looks at config for installed versions which may cause problems. I don't have a system handy to verify. If true, the cocoon/build.sh may need to specify --noconfig below are some snippets

Re: Document Conversions Online

2005-04-05 Thread Michael McGrady
Hello, Jorg, Thanks for your response. I want to provide an application that will take documents and convert them to and from XML, e.g. Word to PDF, PDF to Word, RTF to PDF, etc. Can cocoon do this? Thanks. On Apr 3, 2005 10:45 AM, Jorg Heymans [EMAIL PROTECTED] wrote: Hi Michael, What

[Forms] broadcastEvent

2005-04-05 Thread Ben Anderson
Hi, I have one text field which, once changed, will populate 2 drop down lists. However, the 2nd drop down is dependent on the 1st drop down. So, I have this in my text field's definition fd:on-value-changed javascript ... // this populates the 1st drop down

Re: Document Conversions Online

2005-04-05 Thread Ben Pope
Michael McGrady wrote: Hello, Jorg, Thanks for your response. I want to provide an application that will take documents and convert them to and from XML, e.g. Word to PDF, PDF to Word, RTF to PDF, etc. Can cocoon do this? Thanks. Well... Word, PDF and RTF are not XML in their native formats.

Re: [Forms] broadcastEvent

2005-04-05 Thread Sylvain Wallez
Ben Anderson wrote: Hi, I have one text field which, once changed, will populate 2 drop down lists. However, the 2nd drop down is dependent on the 1st drop down. So, I have this in my text field's definition fd:on-value-changed javascript ... // this populates the 1st drop down

RE: redirect-to result of a transformation

2005-04-05 Thread Adam Ratcliffe
Yes the uri that gets passed to processPipelineTo() does need to reference a pipeline that would fetch your content for you, note that in flowscript you can't use the cocoon: protocol, the path is resolved relative to the current sitemap, or the root sitemap if you prepend it with a '/'. I

Email Capability

2005-04-05 Thread Adam Ratcliffe
Hi, I need to add email support to a cocoon application and am wondering what the preferred way of doing this is these days. The sendmail action seems to support all of the features of the Java Mail API that I need to use, would this be my best option? Cheers Adam

Re: Document Conversions Online

2005-04-05 Thread Michael McGrady
Now we seem to really be getting somewhere. Thanks. I am new at this, so I have some new-like questions. What is FOP? On Apr 5, 2005 12:34 PM, Ben Pope [EMAIL PROTECTED] wrote: Michael McGrady wrote: Hello, Jorg, Thanks for your response. I want to provide an application that will

Re: Document Conversions Online

2005-04-05 Thread Antonio Gallardo
On Mar, 5 de Abril de 2005, 15:10, Michael McGrady dijo: Now we seem to really be getting somewhere. Thanks. I am new at this, so I have some new-like questions. What is FOP? http://xml.apache.org/fop/ Best Regards, Antonio Gallardo

Re: Document Conversions Online

2005-04-05 Thread Ben Pope
Michael McGrady wrote: Now we seem to really be getting somewhere. Thanks. I am new at this, so I have some new-like questions. What is FOP? Apache FOP. I'll let them describe it best: http://xml.apache.org/fop/ It's a piece of cake to use with Cocoon. If you haven't already, then grab the

Cocoon 2.1.7, Jboss 4.0.1sp1

2005-04-05 Thread Borut Žagar
Hi! I am running cocoon as a servlet under Jboss 4.0.1sp1. While Jboss is loading the servlet I get the following exception: org.apache.avalon.framework.configuration.ConfigurationException: No log targets configured for the root logger. Does anybody know why this exception happens and how to

Re: [Forms] broadcastEvent

2005-04-05 Thread Ben Anderson
ok, I won't use broadcastEvent()... Is there a way to specify a default value for the selection-list throught the pipeline specified? For instance my pipeline could return something like: fd:selection-list default=1 fd:item value=1 fd:labelfoo/fd:label /fd:item fd:item value=2

RE: Design note - Building a template mechanism

2005-04-05 Thread Conal Tuohy
Also see this page: http://wiki.apache.org/cocoon/Templates And this one in particular shows one way to do it: http://wiki.apache.org/cocoon/HtmlToXsltExperiments - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional