RE: selecting transform xsl based on document id

2004-09-01 Thread Pratik Das
Thanks Jeroen. I want a wild card match. For example can map:parameter name=parameter-selector-test value={1}/ be matched against something like {1}* so that all document-ids starting with say abc use up a particular template. Thanks Pratik Jeroen Reijn [EMAIL PROTECTED] 08/31/2004 09:58

RE: javascript collection for cocoon

2004-09-01 Thread Niels van Kampenhout
From: Superbiji [mailto:[EMAIL PROTECTED] Posted At: Wednesday, September 01, 2004 7:54 AM Subject: javascript collection for cocoon hi anyone published javascript util collection for cocoon? such as loadDocument(uri), saveDocument(document, uri) You can find some basic IO functions in

Re: Problem with PDF generation

2004-09-01 Thread Reynald Borer
Thanks all of you for your help. I've tried running cocoon with the paranoid classloader and it worked well, so I've tried to track down which lib was causing my problem. I've got a fop.jar in tomcat5/common/endorsed, and removing it made cocoon working without the paranoid classloader. Don't

Re: javascript collection for cocoon

2004-09-01 Thread Superbiji
Java dummy - me too ;) and also, request for new function createDocument(uri, root/) Thanks for libio.js On Wed, 01 Sep 2004 10:19:36 +0200, Derek Hohls [EMAIL PROTECTED] wrote: OK, so I am a Java dummy, but could one of those routines be adapated to create a function isDocument(uri)

Example: Placing a repeater-widget within fi:group?

2004-09-01 Thread Stephan Coboos
Hello, has someone an example how to place a repeater-widget within a fi:group tab? Each element from the repeater-widget should displayed as single row and the labels should appear only once as table header like in the cocoon examples for contacts. But these example doesn't use the fi:group

CForms booleanfield validate problem

2004-09-01 Thread Patrick Verboom
Hi, How do you validate a boolean field? I tried to use my own validate method on the complete form but the boolean field keeps sending me a false. It doesn't mater if I select or deselect the check box the thing keeps giving me a false. I now created a not so elegant solution over a hidden

Problems with schema-to-form example

2004-09-01 Thread Derek Hohls
I have been trying to get the schema-to-form example from the Cocoon wiki working [ http://wiki.apache.org/cocoon/Schema2CocoonForms ] The install guide says: The example expects a directory 'cforms', which includes directories 'resources' and 'messages'. Obviously I did not include them, as

Problems with Cocoon file upload example

2004-09-01 Thread Derek Hohls
I am trying to use the flow version of the Cocoon upload example from the Wiki site; http://wiki.apache.org/cocoon/FileUploadsWithFlow however when I drop the cocoon-upload.jar file into the WEB-INF/lib and try to restart Cocoon, the servlet will not load. A look at Tomcat's error log shows

Attachment info on the Wiki

2004-09-01 Thread Derek Hohls
I know we are still learning our way on the new Wiki, but is it possible to set an option somewhere such the file sizes of the attachments are automatically shown next to the name; that way we do a download we can at least check that the whole file came through Thanks Derek -- This message

Re: Attachment info on the Wiki

2004-09-01 Thread David Crossley
Derek Hohls wrote: I know we are still learning our way on the new Wiki, but is it possible to set an option somewhere such the file sizes of the attachments are automatically shown next to the name; that way we do a download we can at least check that the whole file came through For

Problems with schema-to-form example

2004-09-01 Thread Paul Joseph
After I made this change, it seems to work well. Note: forwarded message attached. ---BeginMessage--- Hi Paul, In your forms resources directory, the form-*-styling.xsl files have a parameter called resoures-uri in them: xsl:param name=resources-uriresources/xsl:param As you can see, it

RE: CForms booleanfield validate problem

2004-09-01 Thread Bart Molenkamp
Hi Patrick, What do you want to validate about a boolean field? A boolean field can only contain valid values. It's value, either true or false, are always valid values for a boolean. So it returns always true. See this code snippet from BooleanField.java: /** * Always return

Re: javascript collection for cocoon

2004-09-01 Thread oceatoon
check out the org.w3c.dom Classes they are really usefull, as well as javascript inbeded DOM manipualtion Classes Maybe this can help you function createDocument(uri, root/) function createDocument(uri, nodename){ //Construct DOM document var document =createDocument(); var r

Re: javascript collection for cocoon

2004-09-01 Thread Derek Hohls
Thanks Tibor I assume that in the second function, if the document is non-existent, that the return will be false [EMAIL PROTECTED] 2004/09/01 01:38:44 PM check out the org.w3c.dom Classes they are really usefull, as well as javascript inbeded DOM manipualtion Classes Maybe this can help

Re: CForms booleanfield validate problem

2004-09-01 Thread Patrick Verboom
Hi Bart, It is a law thing. The user needs to agree before he may continue in the flow. So I wanted to validate the form and look if the check box was checked if not set an validate error message. The problem is that in the validate method of the form the boolean field always false is. Now I

RE: Problems with schema-to-form example

2004-09-01 Thread Niels van Kampenhout
From: Derek Hohls [mailto:[EMAIL PROTECTED] Posted At: Wednesday, September 01, 2004 10:53 AM Conversation: Problems with schema-to-form example I have been trying to get the schema-to-form example from the Cocoon wiki working [ http://wiki.apache.org/cocoon/Schema2CocoonForms ] The

RE: SQLTransformer and MySQL problem

2004-09-01 Thread Hiral Parikh
Title: SQLTransformer and MySQL problem Hi, the problem is fixed!! Jeroen, I had setup debugging in logkit.info and found that there was some parser error thrown from SQLTransformer. After researching more, I found that for some reason it was calling the saxon.jar and for more funnier

RE: Problems with schema-to-form example

2004-09-01 Thread Derek Hohls
Niels You are right, I do have: map:transformer name=forms src=org.apache.cocoon.forms.transformation.FormsTemplateTransformer logger=forms/ map:transformer name=i18n src=org.apache.cocoon.transformation.I18nTransformer catalogues default=other catalogue id=other

Gnumeric xml (Excel)

2004-09-01 Thread robby . pelssers
Hi all, i'm trying to generate excel-files with cocoon... I have written basic stylesheet that transforms xml-file to gnumeric xml. But i'm looking for tutorial, DTD, or schema to know which elements and attributes there are. Anyone worked with this before? Regards, Robby

RE: Gnumeric xml (Excel) - Email has different SMTP TO: and MIME TO: fields in the email addresses

2004-09-01 Thread David Merrilees
You can create excel using the HSSF serializer or you can use using Microsoft's SpreadsheetML and serialize your output as xml and include a processing instruction which will force the file in excel. David Merrilees Hi all, i'm trying to generate excel-files with cocoon... I have written basic

RE: Gnumeric xml (Excel) - Email has different SMTP TO: and MIME TO: fields in the email addresses

2004-09-01 Thread robby . pelssers
But if i want to use the HSSF serializer, i have to know the gnumeric syntaxis to be able to write a stylesheet (eg. see below) I don't find good tutorials, a schema or DTD of what all elements and attributes do... xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;

Re: Recursively generated menus in XSL and Cocoon

2004-09-01 Thread Derek Hohls
Matt You could do this using Cocoon forms; have a look at the example in: /samples/blocks/forms/carselector /samples/blocks/forms/countryselector If you search further in the mail archives, you will find other discussions about further options based on these examples. HTH Derek [EMAIL

Re: Gnumeric xml (Excel)

2004-09-01 Thread Gerald Aichholzer
On Wed, 1 Sep 2004 16:14:45 +0200, [EMAIL PROTECTED] wrote: i'm trying to generate excel-files with cocoon... I have written basic stylesheet that transforms xml-file to gnumeric xml. But i'm looking for tutorial, DTD, or schema to know which elements and attributes there are. The following

Re: Using wildcards within map:select

2004-09-01 Thread Derek Hohls
David At a quick guess I think you need to go back up a level, using {../1} to retrieve the value. Derek [EMAIL PROTECTED] 2004/09/01 03:53:37 PM I've written an action to retrieve a value from a database and set it to a sitemap parameter, then I'm performing a select based on the value of

RE: Gnumeric xml (Excel)

2004-09-01 Thread robby . pelssers
Gerald, i already found the pdf-file written by David Gilbert.. It is a good start indeed... Thx. -Original Message- From: Gerald Aichholzer [mailto:[EMAIL PROTECTED] Sent: 01 September, 2004 16:43 To: [EMAIL PROTECTED] Subject: Re: Gnumeric xml (Excel) On Wed, 1 Sep 2004 16:14:45

Re: Using wildcards within map:select

2004-09-01 Thread Jeff Jones
David, The map:act creates its own set of parameters, as a child of the map:match's set. So you need to refer to your parameter as {../1}, like this: map:redirect-to uri=print/flyer/{../1}.pdf / with one exception: the map:parameter tag is not a part of the child, even though it's contained

Re: Problem with showing pictures from eXist database

2004-09-01 Thread Luigi Bai
Christian Mayrhuber wrote: On Friday 13 August 2004 14:24, Eelke Toonstra wrote: I have a problem with showing images from the eXist database in Cocoon. When I want to show an image in my browser, for example http://localhost:8080/exist/xmldb/db/images/test.jpg it doesn't show a picture but the

Trouble with XMLDBTransformer

2004-09-01 Thread Luigi Bai
I'm having a problem with XMLDBTransformer sending an xupdate to an XMLDB database. I'm pretty sure others are using this successfully, so I'm not sure what I'm doing wrong. I'm using a generator to output a document that looks like this (confirmed with ?cocoon-view=content): ?xml version=1.0

Re: CForms booleanfield validate problem

2004-09-01 Thread Carlos Chávez
Hi Patrick, I have a form with boolean field, i can test the value of the boolean field, can you post the definition of the widget and the validate code ? Cheers. Patrick Verboom Escribio :-) Hi Bart, It is a law thing. The user needs to agree before he may continue in the

Dataype float in CForms?

2004-09-01 Thread Stephan Coboos
Hello, is it possible to use the datatype float to bind my form to a bean using the primitive type float instead of decimal (BigDecimal) in CForms? public float getSum() { . } public void setSum(float sum) { . } Thank you. Regards Stephan

comparing strings in xsp

2004-09-01 Thread Adriano Smith
how can strings be compared in xsp? is it possible to do if(s.equals(\"string\")) { }