Re: scripts XSLT et le cache

2006-01-05 Thread David Verdin
Bonjour, Hé ! Hé ! C'est probable en effet. ;-) Malheureusement, ç'était un peu moins gadget : je cherche à enregistrer des données de session, et de les intégrer dans des fichiers identifiés par la date, pour éviter les monolithes. monolithes ? Euh... qu'est-ce que ça désigne ? Je veux

Re: scripts XSLT et le cache

2006-01-05 Thread Sylvain Wallez
David Verdin wrote: Bonjour, Hé ! Hé ! C'est probable en effet. ;-) Malheureusement, ç'était un peu moins gadget : je cherche à enregistrer des données de session, et de les intégrer dans des fichiers identifiés par la date, pour éviter les monolithes. monolithes ? Euh... qu'est-ce que ça

Re: scripts XSLT et le cache

2006-01-05 Thread Frédéric Glorieux
Merci beaucoup pour cette explication très justifiée du flowscript, pour lequel je suis encore très réticent, du moins dans sa version javascript. L'aspect qui me dérange toujours est d'aller fouiller des API java pour deviner comment dire en javascript ce qui est à l'origine en JAVA.

Re: scripts XSLT et le cache

2006-01-05 Thread David Verdin
snip/ Argh, le fameux SourceWritingTransformer... Ben c'est pas si mal pour stocker quelques informations qui n'ont pas forcément besoin d'être organisées en base de données. Pour le moment en tout cas. Qu'est-ce qu'il a de mal, ce pauvre transformer ? Il est dans la catégorie

Re: scripts XSLT et le cache

2006-01-05 Thread David Verdin
Sylvain Wallez wrote: C'est un des avantages de Cocoon: on peut faire plein de trucs sans connaître Java, mais c'est aussi un des inconvénients, parce qu'on arrive parfois à des constructions qui certes fonctionnent, mais sont réellement difficile à comprendre quand on reprend un projet.

Problem binding SQLTransformer to Cform

2006-01-05 Thread Peter Neu
Hello, I'm doing my first steps with cocoon. This is what I'm trying to do: -query data form a database -convert result set to xml -display data in a form field I have difficulties binding the retrieved xml to the form. The retrieval works ok. Please see the sample.xml below original message.

How to use LDAP Transformer ?

2006-01-05 Thread rahul . manavi
Hello, I'm relatively new to using Cocoon. I feel the information provided about LDAP Transformer on Cocoon Website is not sufficient. I want to carry out LDAP authentication inside Cocoon. How can I use LDAP Transformer for this purpose ? Could you please suggest any better way of achieving

RE: How to use LDAP Transformer ?

2006-01-05 Thread Ard Schrijvers
Hello, think you mean something like: map:generate src=ldapinfo.xml/ map:transform type=ldap/ where your ldapinfo.xml looks something like: ldap:execute-query xmlns:ldap=http://apache.org/cocoon/LDAP/1.0; ldap:version3/ldap:version ldap:serverurlldap:///ldap:serverurl !-- your ldap server

Access cform field labels from flowscript

2006-01-05 Thread ext-ml
Hi, We have the following use case and I would like to know, if there is a recommended solution for this: We are developing a generic form framework based on cform which should roughly use the following workflow: 1. Display input forms until successfully validated (can be single-page as well as

cookie setDomain

2006-01-05 Thread philguillard
Hi, Is it possible (or impossible) to set the cookie domain at the time (or after) the cookie creation? I use Portal block, thus Auth-framework, and i'd like to set the domain to .mydomain.com instead of www.mydomain.com for subdomain issues (to be able to keep the session with subdomains

RE: Problem binding SQLTransformer to Cform

2006-01-05 Thread Ard Schrijvers
Hello, think you'r heading for major headache the way you are trying to use Cforms/binding! What your are describing is pretty well possible, but it will become unnecessary hard to store your date (how are you planning this? After the form is submitted, find out the different fields, and

AW: Problem binding SQLTransformer to Cform

2006-01-05 Thread Peter Neu
Hi, I don't know much about ojb. But are you suggesting a usage like this: http://www.guschtel.de/HP5/linux/ojbjdo_dmton.php If yes, I don't see where the benefit of cocoon lies anymore. My aim is to simply the whole process from data retrieval to display. I don't have much data to return to

RE: Problem binding SQLTransformer to Cform

2006-01-05 Thread Ard Schrijvers
Hi, I don't know much about ojb. But are you suggesting a usage like this: http://www.guschtel.de/HP5/linux/ojbjdo_dmton.php indeed, except that the example is a little hard/large for a first time use. Look for BrickCMS (heard there was even an easier example but forgot its name, it

How to return xml from a flowscript?

2006-01-05 Thread Jonas Lundberg
I am quite new to flowscript, so this is a basic quesiton... However, I have not been able to get any of the examples I found on Google to work. I have the following flowscript: function cleanWordHtml() { var base = Packages.java.lang.String(cocoon.parameters[base]); var page =

RE: Access cform field labels from flowscript

2006-01-05 Thread Ard Schrijvers
Since you want an overview of the filled form, why not do something like: 1) call a pipeline from flow with params holding the widgetids:widgetvalues 2) generates a cocoon:/pipeline with the jx generator (see the cocoon:/pipeline below) 3) You now have an xml block having the translated labels

RE: How to return xml from a flowscript?

2006-01-05 Thread Ard Schrijvers
Think you should take a look at the streamgenerator, that should do the job AS I am quite new to flowscript, so this is a basic quesiton... However, I have not been able to get any of the examples I found on Google to work. I have the following flowscript: function cleanWordHtml() {

Re: How to return xml from a flowscript?

2006-01-05 Thread Geert Josten
It reads a Cocoon pipeline, which converts a Word HTML file to XML. Then it sends this as a string in a parameter, to a pipeline that processes it further. Why not read WordML? :) What I *would like* to do, is to send XML in the parameter, instead of a string. Is this possible? Does anyone

RE: Custom Form Validator

2006-01-05 Thread Ard Schrijvers
You can put fd:validation in you form. For example, start you fd:form with fd:form id=data xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns:i18n=http://apache.org/cocoon/i18n/2.1; fd:validation fd:javascript return messageValidator(widget);

Cocoon and eXist

2006-01-05 Thread Peter Flynn
[My apologies for crossposting, but I don't know which community is best placed to answer this one.] I am going to be using Cocoon to serve a large and varied collection of XML documents and I'd like to use eXist as the search system. Cocoon is running happily within Tomcat on port 80 as the

RE: where is the form.getWidget() documentation?

2006-01-05 Thread Ard Schrijvers
This should do it: http://cocoon.zones.apache.org/daisy/books/cocoon_forms_book--20051027-15:54:02/publications/pdf/output/book.pdf Hello, Does anyone know where I can find the documentation for form.getWidget()? I'm looking at the following lines in the ajax car selector sample.

Re: How to return xml from a flowscript?

2006-01-05 Thread Jonas Lundberg
Thanks for the replies. The problem is that I then have use the xml in a pipeline that starts with an xquery generator (this is the pipeline I call from the flowscript): map:generate src=xq/discuss.xq type=xquery map:parameter name=cleanedxml value={flow-attribute:cleanxml}/ Therefore,

Re: Cocoon and eXist

2006-01-05 Thread Jonas Lundberg
Peter, I think you might want to integrate eXist with your existing Cocoon installation: http://wiki.exist-db.org/comments/CocoonInstall Regards Hans On 1/5/06, Peter Flynn [EMAIL PROTECTED] wrote: [My apologies for crossposting, but I don't know which community is best placed to answer this

AW: Cocoon and eXist

2006-01-05 Thread Christian Barth
I think it should work, when you putt the directory in the Wepapps folder of Tomcat. You can then access the Admin-Page over http://localhost:8080/exist It shouldn't matter if you put Cocoon as ROOT-Folder or in a separate Folder under Webapps. -Ursprüngliche Nachricht- Von: Peter Flynn

Re: [Exist-open] Re: Cocoon and eXist

2006-01-05 Thread Peter Flynn
On Thu, 2006-01-05 at 11:48, Jonas Lundberg wrote: Peter, I think you might want to integrate eXist with your existing Cocoon installation: http://wiki.exist-db.org/comments/CocoonInstall Thanks, I'd somehow missed that page. I'll give it a try. ///Peter

Re: How to return xml from a flowscript?

2006-01-05 Thread Geert Josten
Thanks for the replies. The problem is that I then have use the xml in a pipeline that starts with an xquery generator (this is the pipeline I call from the flowscript): map:generate src=xq/discuss.xq type=xquery map:parameter name=cleanedxml value={flow-attribute:cleanxml}/ How is

Re: How to return xml from a flowscript?

2006-01-05 Thread Jonas Lundberg
The xquery stores the XML file in eXist. Thus, if I try to insert the xml file using an Xinclude in discuss.xq, and then use an xinclude transformer after generation, then it will be put there *after* the query is executed. Which is not useful in this case, since the XML is needed during

Re: How to return xml from a flowscript?

2006-01-05 Thread Geert Josten
No, this is not what I meant. You can replace: src=xq/discuss.xq by: src=cocoon:/insert-whtm-in-query/discuss.xq/path-to-whtm And create an new pipeline that includes the cleaned whtm into your xquery instruction. :-) Jonas Lundberg wrote: The xquery stores the XML file

Re: [Exist-open] Re: Cocoon and eXist

2006-01-05 Thread Huib Verweij
Peter Flynn wrote: On Thu, 2006-01-05 at 11:48, Jonas Lundberg wrote: Peter, I think you might want to integrate eXist with your existing Cocoon installation: http://wiki.exist-db.org/comments/CocoonInstall Thanks, I'd somehow missed that page. I'll give it a try. Hi, maybe I'm

Re: How to return xml from a flowscript?

2006-01-05 Thread Jonas Lundberg
That would work, if I could do it... But xqueries are not written in XML, so how can I then include the XML in a good place in my xquery? :-( Hans On 1/5/06, Geert Josten [EMAIL PROTECTED] wrote: No, this is not what I meant. You can replace: src=xq/discuss.xq by:

Hibernate in Cocoon

2006-01-05 Thread David Kavanagh
Has anyone interfaced with Hibernate in a pipeline? Did you write a transformer, call JavaFlow or something else? I'm thinking of using the Hibernate XML export feature to load objects into my pipeline (inside a transformer). I'd certainly appreciate hearing about any existing work in this

Re: Cocoon and eXist

2006-01-05 Thread philguillard
You may also have a look at http://wiki.apache.org/cocoon/EXistInCocoon Just a few jars to add and some web.xml changes, an old cocoon release is mentioned there but it worked for me. From what i remember, the cocoon app in eXist is just a light application. Phil Jonas Lundberg wrote:

Re: How to return xml from a flowscript?

2006-01-05 Thread Jonas Lundberg
Yes, de-serializing with util:eval works in some cases. However, it does not work for documents that contain or in the text contents, because that will then be de-serialized as well. This will cause an error. For instance, the XHTML: p lt;!-- Add here other XML:DB compliant databases' drivers

Re: How to return xml from a flowscript?

2006-01-05 Thread Geert Josten
Err, perhaps switch to the XML syntax of the XQuery language? That should be available and I would be surprised if it is not supported. I believe there are converters that can translate one to the other.. Regards, Geert Jonas Lundberg wrote: That would work, if I could do it... But xqueries

Re: How to return xml from a flowscript?

2006-01-05 Thread Jonas Lundberg
That might work, but it is not a good solution for me, although it might work in other cases. My xqueries are very complex. But this can't end here, can it? Is there really no way of returning XML in a parameter from a flowscript in Cocoon? Regards, Hans On 1/5/06, Geert Josten [EMAIL

Re: AW: Cocoon and eXist

2006-01-05 Thread Peter Flynn
On Thu, 2006-01-05 at 12:00, Christian Barth wrote: I think it should work, when you putt the directory in the Wepapps folder of Tomcat. You can then access the Admin-Page over http://localhost:8080/exist It shouldn't matter if you put Cocoon as ROOT-Folder or in a separate Folder under

Re: How to return xml from a flowscript?

2006-01-05 Thread Zbigniew Bomert OP
Jonas Lundberg wrote: The xquery stores the XML file in eXist. (...) You can store xml in eXist from flowscript, without using xquery, as described in: http://wiki.apache.org/cocoon/CformsExistAndFlow Zbigniew Bomert - To

Re: How to return xml from a flowscript?

2006-01-05 Thread Jonas Lundberg
So, what you are saying now is that you cannot pass an xml document as a parameter in Cocoon, at all? If one can pass xml documents as parameters, then... How would I parse the output stream, and pass along the DOM object? Regards Hans On 1/5/06, Geert Josten [EMAIL PROTECTED] wrote: You can

Re: How to return xml from a flowscript?

2006-01-05 Thread Suzan Foster
Does the xquery do any processing on the xml, or does it just use eXist's update extensions to store it as-is? If you need to do the latter you can use an XMLDBSource to write the file directly into eXist from your flowscript. Jonas Lundberg wrote: The xquery stores the XML file in eXist.

Re: How to return xml from a flowscript?

2006-01-05 Thread Jonas Lundberg
Thanks, yes that would be a good way to store the document. (I currently do that using XSP) However, I should add that the xQuery is the core of a content management system, so it also does version management, among other things, (while storing the file). Therefore, storing a temporary file, does

Re: [Exist-open] Re: Cocoon and eXist

2006-01-05 Thread Peter Flynn
On Thu, 2006-01-05 at 12:31, Huib Verweij wrote: Peter Flynn wrote: On Thu, 2006-01-05 at 11:48, Jonas Lundberg wrote: Peter, I think you might want to integrate eXist with your existing Cocoon installation: http://wiki.exist-db.org/comments/CocoonInstall Thanks, I'd

Re: How to return xml from a flowscript?

2006-01-05 Thread Geert Josten
So, what you are saying now is that you cannot pass an xml document as a parameter in Cocoon, at all? What do you mean with xml document and what with parameter? The parameters you pass from FlowScript can contain any object type, but I'm pretty sure that map:parameter does not allow that.

Re: Hibernate in Cocoon

2006-01-05 Thread Jason Johnston
David Kavanagh wrote: Has anyone interfaced with Hibernate in a pipeline? Did you write a transformer, call JavaFlow or something else? I'm thinking of using the Hibernate XML export feature to load objects into my pipeline (inside a transformer). I'd certainly appreciate hearing about any

Getting sitemap file name line number when exceptions occur

2006-01-05 Thread Bob Harner
Greetings, all! One of the things that makes Cocoon development difficult for me is that, when exceptions are thrown, I see the file name and line number of the java source code where the exception occurred, but NOT the file name and line number of the sitemap that called the component. For

Re: Custom Form Validator

2006-01-05 Thread Dustin N. Jenkins
Thanks to the responses, that's what I needed! Dustin N. Jenkins wrote: Does anyone have experience writing Custom Form Validators? We need a way of accessing our Spring Service Layer from one of our Cocoon Custom Validators, but the Validator doesn't seem to have access to the HTTP

Re: Getting sitemap file name line number when exceptions occur

2006-01-05 Thread Jason Johnston
Greetings, all! One of the things that makes Cocoon development difficult for me is that, when exceptions are thrown, I see the file name and line number of the java source code where the exception occurred, but NOT the file name and line number of the sitemap that called the component. For

Re: Getting sitemap file name line number when exceptions occur

2006-01-05 Thread Bob Harner
On 1/5/06, Jason Johnston [EMAIL PROTECTED] wrote: Greetings, all! One of the things that makes Cocoon development difficult for me is that, when exceptions are thrown, I see the file name and line number of the java source code where the exception occurred, but NOT the file name and

Chaining transforms in SourceWritingTransformer?

2006-01-05 Thread Lincoln
Can I chain another transform to my SourceWritingTransformer sitemap pipeline? I imagine it would look like this. But the resulting png is not effected by another.xsl. --- map:pipeline map:match pattern=write/** map:generate type=request/ map:transform src=request2doc.xsl/

Re: Chaining transforms in SourceWritingTransformer?

2006-01-05 Thread Jason Johnston
Lincoln wrote: Can I chain another transform to my SourceWritingTransformer sitemap pipeline? Yes, you can add as many transformers as you like in any order. This is the whole idea behind pipelines! :-) I imagine it would look like this. But the resulting png is not effected by

RE: Chaining transforms in SourceWritingTransformer?

2006-01-05 Thread Lincoln
Here's Another.xsl --- ?xml version=1.0 encoding=UTF-8? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xsl:template match=/ xsl:apply-templates/ /xsl:template xsl:template match=//[EMAIL PROTECTED]'myRect'] xsl:copy xsl:apply-templates

Is it new applications developed can integrate with apache lenya ??

2006-01-05 Thread zulhisham abu nawar
hi... i'm newbie in cocoon and lenya. i have already up lenya server (lenya 1.2.4 n cocoom 2.1.7) on top tomcat server. My question are : 1. Can i up my cocoon server at the same time lenya up too? 2. Can i create new application based on cocoon then the application can integrate with lenya cms??

Re: Is it new applications developed can integrate with apache lenya ??

2006-01-05 Thread Christoph Hermann
Am Freitag, 6. Januar 2006 07:45 schrieb zulhisham abu nawar: Hello, i'm newbie in cocoon and lenya. i have already up lenya server (lenya 1.2.4 n cocoom 2.1.7) on top tomcat server. My question are : 1. Can i up my cocoon server at the same time lenya up too? yes. Lenya is cocoon-based, so

RE: Chaining transforms in SourceWritingTransformer?

2006-01-05 Thread Lincoln
Just incase anyone was keen to know the solution to this thread. It was just a namespace issue. I had to change the namespace on SVG tag on the original rect.svg from the default xmlns namespace to xmlns:svg. Thanks to Jason Johnston for the help. Linc -Original Message- From: