using sql:query on a jx page

2007-01-25 Thread sven goosen
Hi, Once again on my quest to using Cocoon, i have a question. Can I use the output of a flowscript, in a page that is using the SQL transformer? So, can i put a transformer like: map:transform type=sql map:parameter name=use-connection value=ledenSysDB/ /map:transform In a match like this:

Re: using sql:query on a jx page

2007-01-25 Thread Jeroen Reijn
Hi Sven, yes this can be done! You should be able to do this by just adding the SQL transformer behind the jx generator. Like this: map:match pattern=foo.jx map:generate src=scripts/foo.jx type=jx/ map:transform type=sql map:parameter name=use-connection value=ledenSysDB/

Storing XML in a form field

2007-01-25 Thread Abbas Mousavi
Hi I have a simple application and use loadXML, showForm, saveXml to geting some data from user and saving it in eXist, Can I save an xml fragment as one of the fields of the form? (I have a javascript tree editor in a textarea and want to save the resulting xml tree in one field of the form)

accessing uri-prefix from within a sub-sitemap

2007-01-25 Thread Stephen Winnall
I'd like to reuse a sub-sitemap for a number of different uri- prefixes. I can set this up in the main sitemap as follows: map:match pattern=*/** map:mount check-reload=yes src=design/area/sitemap.xmap uri- prefix={1} / /map:match Is there a way in the sub-sitemap

Re: using sql:query on a jx page

2007-01-25 Thread sven goosen
Hi Jeroen, Thanks for the hint. It seems to work when i got a select query. But when I do the exact same thing, on a insert query. it doesn't seem to insert the data into the database. I don't think I need to handle an insert query different, do I? Here is the relevant sitemap: map:match

accessing uri-prefix from within a sub-sitemap

2007-01-25 Thread Stephen Winnall
I'd like to reuse a sub-sitemap for a number of different uri- prefixes. I can set this up in the main sitemap as follows: map:match pattern=^(company|consulting|translation|research| support)(.*)$ type=regexp map:mount check-reload=yes src=design/area/sitemap.xmap uri- prefix={1} /

from flowscript to pipline

2007-01-25 Thread rachid harradi
Dear All, i need your help. so i have following flowscript. function main() { try { var myXml = java.io.ByteArrayOutputStream(); var pipeutil =

Re: Sitemap schema (Re: [contrib] Cocoon editor)

2007-01-25 Thread Peter Flynn
Mark Lundquist wrote: On Jan 24, 2007, at 2:17 AM, Peter Flynn wrote: I couldn't find a DTD or Schema anywhere though: I'm sure there's one around -- it's just not obvious. The link to sitemap-2.1-draft.xsd on http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html is broken, and all

Re: using sql:query on a jx page

2007-01-25 Thread Jeroen Reijn
Hi Sven, your code seems fine and the insert should work. Did you try to look in the cocoon logs? If not, you could try to set the debug level of the sql transformer to debug. Kind regards, Jeroen Reijn sven goosen wrote: Hi Jeroen, Thanks for the hint. It seems to work when i got a

Re: from flowscript to pipline

2007-01-25 Thread rachid harradi
Dear All, i get a error like : org.apache.excalibur.source.SourceException: The attribute: myXml is empty any idea Rachid Harradi Original-Nachricht Datum: Thu, 25 Jan 2007 15:12:03 +0100 Von: rachid harradi [EMAIL PROTECTED] An: users@cocoon.apache.org Betreff: from

Link: Training:

2007-01-25 Thread Hipkiss JR (Mr)
Hi I thought you'd like to know that in following the links on the training page at : http://cocoon.apache.org/link/training.html The first two links are broken to Galatea Information Strategies and SN AG and have been for the last week or so. Thanks Jonathan Hipkiss

Re: [2.2 trunk] Problem with CForms Bean Binding Example

2007-01-25 Thread Grzegorz Kossakowski
Wotan von Klass napisał(a): Hello, I have a problem with the Bean Binding example. When I click the submit button, the form is loaded again. But I should get in the form2bean-success-pipeline and see data extracted from the bean. Any thoughts? Are the 2.2 CForms allready stable? Forms in 2.2

Re: Link: Training:

2007-01-25 Thread Grzegorz Kossakowski
Hipkiss JR (Mr) napisał(a): Hi I thought you'd like to know that in following the links on the training page at : http://cocoon.apache.org/link/training.html The first two links are broken to Galatea Information Strategies and SN AG and have been for the last week or so. You could please

RE: accessing uri-prefix from within a sub-sitemap

2007-01-25 Thread Nico Verwer
Stephen Winnall wrote: I'd like to reuse a sub-sitemap for a number of different uri- prefixes. I can set this up in the main sitemap as follows: map:match pattern=^(company|consulting|translation|research| support)(.*)$ type=regexp map:mount check-reload=yes

Cocoon's capabilities - XML to PostgreSQL ?

2007-01-25 Thread Jim C.
I've got a large XML file, say 15 Mb and I need to get it into a PostgreSQL database. Can Cocoon do this? If so, I could sure use some tips. RTFM'ers Note: I am reading the docs now. Perhaps you could direct me to relevant sections? :-) Jim C.

Re: using sql:query on a jx page

2007-01-25 Thread sven goosen
Hi, I can't find anything in the logs. how can i set the debug level of the transformer? Sven Jeroen Reijn schreef: Hi Sven, your code seems fine and the insert should work. Did you try to look in the cocoon logs? If not, you could try to set the debug level of the sql transformer to

Re: Cocoon's capabilities - XML to PostgreSQL ?

2007-01-25 Thread Bertrand Delacretaz
On 1/25/07, Jim C. [EMAIL PROTECTED] wrote: I've got a large XML file, say 15 Mb and I need to get it into a PostgreSQL database. Can Cocoon do this?... It could, but if it's a one-time job, I'd go for generating SQL statements by transforming your XML with XSLT: XML file - XSLT transform -

Re: accessing uri-prefix from within a sub-sitemap

2007-01-25 Thread Stephen Winnall
Thanks Nico, that's great. Steve On 25 Jan 2007, at 16:37, Nico Verwer wrote: Stephen Winnall wrote: I'd like to reuse a sub-sitemap for a number of different uri- prefixes. I can set this up in the main sitemap as follows: map:match

Re: from flowscript to pipline

2007-01-25 Thread Jason Johnston
Dear All, i get a error like : org.apache.excalibur.source.SourceException: The attribute: myXml is empty any idea Rachid Harradi Original-Nachricht Datum: Thu, 25 Jan 2007 15:12:03 +0100 Von: rachid harradi [EMAIL PROTECTED] An: users@cocoon.apache.org Betreff: