Re: PDF "Double Dipping" -- FOP bug?

2002-09-12 Thread Bertrand Delacretaz
On Friday 13 September 2002 02:47, Paul Lee wrote: >. . .I noticed that whenever I generate a PDF > file the same query always get executed twice >. . . Most probably your client is Internet Explorer? http://marc.theaimsgroup.com/?l=fop-user&m=102836194606677&w=2 contains references to info abo

Re: [SUMMARY] How can I log in non-Cocoon Java classes?

2002-09-12 Thread Bertrand Delacretaz
On Friday 13 September 2002 09:24, Alan Hodgkinson wrote: > More material for the (soon to be written) Cocoon hackers guide. :) Maybe you want to add this to the Cocoon Wiki at http://outerthought.net/wiki/Wiki.jsp? it would be a nice complement to what's already there IMHO. -Bertrand ---

RE: PDF "Double Dipping" -- FOP bug?

2002-09-12 Thread Matthew Langham
Hi Paul,   I think this is a known bug when using the PDF viewer in Microsoft IE.   Matthew   -Original Message-From: Paul Lee [mailto:[EMAIL PROTECTED]]Sent: Friday, September 13, 2002 2:47 AMTo: [EMAIL PROTECTED]Subject: PDF "Double Dipping" -- FOP bug? I know the

[SUMMARY] How can I log in non-Cocoon Java classes?

2002-09-12 Thread Alan Hodgkinson
More material for the (soon to be written) Cocoon hackers guide. :) Logging in non-Cocoon Java Classes -- This explaines how to implement Cocoon-style logging, in a Java class that is not inherited from a Cocoon or Avalon component class. The class is however

Re: Xindice inside Xsp

2002-09-12 Thread Daniel Fournier
Hi fxp, In eXist source dist. you have a logicsheet based on XML-DB API to talk to XML-DB compliant databases. So you can use this logicsheet to connect to Xindice. Look at eXist-0.8.1/src/org/exist/xmldb.xsl Cheers, Daniel Fournier --

PDF "Double Dipping" -- FOP bug?

2002-09-12 Thread Paul Lee
I know the subject line is pretty stupid, but hell, it’s been a long day…   I have started to use Cocoon to generate HTML and PDF output from a database.  It works great but I noticed that whenever I generate a PDF file the same query always get executed twice, while the equivalent HTML g

RE: PHP

2002-09-12 Thread Sushil Bhattarai
I got phpsrvlt.jar from php.net and built webapp using the build instruction. Still, while building it says "Classes of optional package PHP are not available. Cocoon builds without them." Php generator class is not being created in cocoon.jar (org.apache.cocoon.generation) although I placed the

Re: Cocoon and PDF/HTML-Layout Tools Integration (for expl. QuarkXPress,... etc.)

2002-09-12 Thread Litrik De Roy
Take a look at Scriptura from Inventive Designers (http://www.inventivedesigners.com/) In short... it's a GUI designer for XSL-FO documents. You can merge XML or JDBC data, add barcodes, use conditions, etc... It's a commercial product but there's a free trial available. Disclaimer: I work for

Re: How do SOAP services work in 2.1?

2002-09-12 Thread Marcus Crafter
Hi Lajos, On Mon, Sep 09, 2002 at 08:42:29AM -0600, Lajos Moczar wrote: > Quick question - I've tested out the hello.service example (in the > samples/hello-world subproject from 2.1) from my SOAP client, and > received back the expected XML content in the SOAP response. Then I > created my ow

Re: esql:get-timestamp | how to add a locale to the format attribute?

2002-09-12 Thread leo leonid
On Monday, September 9, 2002, at 11:41 Uhr, leo leonid wrote: > hi, > I've got this > > and now I want to add a locale just like in > SimpleDateFormat(", d. , h:mm a", Locale.US) > > If it is possible to do this in XML, does anyone know the right syntax? > Thanks. > /L

Re: PHP

2002-09-12 Thread Alexandru COSTIN
Hello, You might be trying Krysalis. It's pretty similar with Cocoon, but it's PHP based. http://www.interakt.ro/products/Krysalis/ Alexandru On Thu, 2002-09-12 at 18:06, Sushil Bhattarai wrote: > Hi > > Has anyone build PHP generator ? I

my opinion on global-parameters

2002-09-12 Thread Barbara Post
I really wonder why they're so buggy to use... I have to have ../../ }-like path to access them, and they seem not to be as path-logically accessible as the ordinary parameters, at least I have troubles with them. Just my two hot cents :-( I will have a look at the other solution (definition in

RE: PHP

2002-09-12 Thread Per Kreipke
I thought it was in there already though it requires a little work to get it running: http://xml.apache.org/cocoon/userdocs/generators/php-generator.html -Original Message- Hi Has anyone build PHP generator ? I've never build Cocoon from source and I'm kind of scared to do that? Is there

embedding xsp in an xml document

2002-09-12 Thread Timothy Larson
I'm trying to embed xsp in an xml document. A stylesheet extracts it so I can use it in a pipeline like this: Trouble is, when I make changes in the xsp code I have to save and refresh a random number of times to get the output to update with the changes. How can I g

PHP

2002-09-12 Thread Sushil Bhattarai
Hi Has anyone build PHP generator ? I've never build Cocoon from source and I'm kind of scared to do that? Is there anyway I can incorporate PHP generator in cocoon.jar without building it from source? Also are there any sample for PHP in Cocoon SushilChat with friends online, try MSN Messenger: C

Re: Sending a parameter to Xerces (allow java char encodings, eg MacRoman )

2002-09-12 Thread Vadim Gritsenko
Jesse Reynolds wrote: > At 10:22 -0400 12/9/2002, Vadim Gritsenko wrote: > >> Jesse Reynolds wrote: >> >>> At 0:53 +1000 18/8/2002, Jesse Reynolds wrote: >>> OK! I've finally gotten this thing working in Cocoon 2.0.3!!! Thanks for your assistance (and patience) Vadim. >>> >>> >>> >>>

cocoon-users@xml.apache.org

2002-09-12 Thread Vadim Gritsenko
Tim Cavanagh wrote: >Hi Justin > >We too are having problems doing very much the same thing. > >We are having major problems with the serializer adding line breaks to list >elements such as blah is being parsed out as: > > > >blah > > > >We are using a middleware product called the VCe that look

RE: Is it a good idea to avoid the use of xsp ?

2002-09-12 Thread Leigh Dodds
If you strictly enforce that your XSP pages don't contain Java code, and only use custom tags (Logicsheets) then you don't necessarily have a problem.   Your efforts here should focus on creating a useful set of Logicsheets, but ones that have a declarative approach, rather than ending up

Re: XSP Indentation and Whitespace

2002-09-12 Thread Vadim Gritsenko
Martin Schimak wrote: > Hi folks! > > I am relatively new to cocoon, but so far I am VERY IMPRESSED and I > have a strong feeling that I > will spend a considerable amount of forthcoming lifetime > using/exploring/developing :-) > > However, on my exploring way, I encountered a small, but annoy

Re: xsp:element root element bug?-> solved! Thanks Vadim.

2002-09-12 Thread Sanne de Roever
Hi Vadim, Thanks, that worked! A already had an alternate solution using a fake element which was stripped by an xsl transformation. This is better though! Kind regards, Sanne - Original Message - From: "Vadim Gritsenko" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, Sep

Re: Sending a parameter to Xerces (allow java char encodings, eg MacRoman )

2002-09-12 Thread Jesse Reynolds
At 10:22 -0400 12/9/2002, Vadim Gritsenko wrote: >Jesse Reynolds wrote: > >>At 0:53 +1000 18/8/2002, Jesse Reynolds wrote: >> >>>OK! I've finally gotten this thing working in Cocoon 2.0.3!!! >>>Thanks for your assistance (and patience) Vadim. >> >> >> >> >>I have java-encodings working now for st

Re: Need to build source to upgrade built-in logicsheet?

2002-09-12 Thread Vadim Gritsenko
gv wrote: >Hi, > >Do I need to download and build the entire Cocoon >2.0.4-dev from source to upgrade a built-in >logicsheet? > >A newer version of util.xsl than in the 2.0.3 release >would fix my problem. > >It'd be great if I could just download the newer >util.xsl, put it somewhere, and have C

Re: Sending a parameter to Xerces (allow java char encodings, eg MacRoman )

2002-09-12 Thread Vadim Gritsenko
Jesse Reynolds wrote: > At 0:53 +1000 18/8/2002, Jesse Reynolds wrote: > >> OK! I've finally gotten this thing working in Cocoon 2.0.3!!! Thanks >> for your assistance (and patience) Vadim. > > > > > I have java-encodings working now for standard xml pages parsed by > Cocoon, but alas XSP page

Re: XSP output: disable-output-escaping?

2002-09-12 Thread Vadim Gritsenko
gv wrote: >Hi, > >>From an XSP page, I am trying to output a Java >variable that contains the XML result of an external >script as XML, but my angle brackets are escaping to >character entities. > >I have a Java String variable called 'scriptOutput'. >It's filled with a string of XML that comes f

Re: Need help with LuceneXMLIndexer

2002-09-12 Thread Vadim Gritsenko
Ganael LAPLANCHE wrote: > Hi ! > > I'd like to use this cocoon class to index XML pages... > Where could I find examples of codes using this class ? > > Has anyone ever tried it ? See search demo in Cocoon samples webapp. Vadim > Thank you, > > Gan.

Re: xsp:element root element bug?

2002-09-12 Thread Vadim Gritsenko
Sanne de Roever wrote: >Hi, > >I've been using the xsp:element, and xsp:attribute tags with succes when >creating svg. >But now I would like to wrap the root element svg in such a tag, so I can >adjust the width and height. >The could/should be like this: > > > xmlns:xsp="http://apache.org/xsp";

Re: Need help with XMLForm and Mod-db (Please disregard my earlierposts)

2002-09-12 Thread Bobby Mitchell
My solution is to change the code in DatabaseAction.java to remove the table_name. from the variable names. I made this change to test it and it works. I suppose I need to change the code in such a way to allow a user to supply a configuration directive such as false. Is there any reason I sh

Re: file-upload-overwrite permission

2002-09-12 Thread Vadim Gritsenko
Niket Anand wrote: >Hello All, >I am able to upload any file to /WEB-INF/work/image-dir directory as >specified in web.xml file. >If I want to upload same file again, it saves to directory with 1_image.gif >name(it saves with new file name by appending 1_ before actual file name). >I donot want t

Re: sitemap substitution in actions

2002-09-12 Thread Vadim Gritsenko
Phil Blake wrote: > I have a directory with common resources like images and pdfs thyat > are used by all sections of the site. I also have other directories > with resources that are specific to a certain part of the site. > > So... If the url points to a specific resource, and it doesn't exis

form validation

2002-09-12 Thread Barbara Post
I just wonder whether I can do the following in my xsl : The field validation can trigger 2 types of errors : 1. the field is null -> show message 1 2. the field is not null but has wrong regex syntx -> show message 2. I just have troubles to find the documentation again... For now I have 2 erro

Re: How to use Request-parameter Selector with the submit button

2002-09-12 Thread Antonio Gallardo Rivera
Thanks bobby, it works! Antonio El Jueves, 12 de Septiembre de 2002 06:40, Bobby Mitchell escribió: > Antonio Gallardo Rivera wrote: > >Hi all! > > > >I tried to resolve a problem about nested in C2.1. To > > try to work with a database actions and formvalidator. > > > >Given 2 submit buttons i

Re: Is it a good idea to avoid the use of xsp ?

2002-09-12 Thread Lajos Moczar
Hi Gernot - Whether one method is a better or worse idea than another is largely dependent on how you implement it. Yes, XSPs do somewhat violate Separation of Concerns. And yes, you can compare XSPs to JSPs in terms of pitfalls. The fact is, that there are some things you can only do with XS

Re: putting a request param in session and using it in the sitemap [SOLUTION]

2002-09-12 Thread Yvan Peter
Thanks to the people who answered, it helped me building a solution. Here is the sitemap snippet that put a request param into a session and can latter retrieve it in the sitemap :

Re: Is it a good idea to avoid the use of xsp ?

2002-09-12 Thread Koen Pellegrims
On Thu, 12 Sep 2002, Gernot Koller wrote: > > Hi! > > First, thanks for your very quick replies to my last question! > > After quite some time discussing and evaluating we made a decision in favor of >cocoon as presentation framework. One major argument for cocoon and against struts >was that i

Re: Is it a good idea to avoid the use of xsp ?

2002-09-12 Thread Barbara Post
AFAICS XSP is a bit similar to JSP in a way, so you will rather use Actions etc. They were introduced in C 2.0 to replace XSPs, when one wants ;-)   I personnally don't use and don't need XSP, but then I use a lot of transformers...   Babs - Original Message - From: Gernot Ko

Re: How to use Request-parameter Selector with the submitbutton

2002-09-12 Thread Timothy Larson
The submit button comes across just like text fields. Here is a sample login page and post page: http://apache.org/xsp";> Sometext: http://apache.org/xsp"; xmlns:xsp-request="http://apache.org/xsp/request/2.0";> Sometext = Submit = Ti

Is it a good idea to avoid the use of xsp ?

2002-09-12 Thread Gernot Koller
Hi! First, thanks for your very quick replies to my last question! After quite some time discussing and evaluating we made a decision in favor of cocoon as presentation framework. One major argument for cocoon and against struts was that in jsp a strict seperation of logic (Java code) and presentat

Re: How to use Request-parameter Selector with the submit button

2002-09-12 Thread Bobby Mitchell
Antonio Gallardo Rivera wrote: >Hi all! > >I tried to resolve a problem about nested in C2.1. To try to >work with a database actions and formvalidator. > >Given 2 submit buttons in a form: one for update and the second for delete: > >The name of the parameters will be: > >cocoon-action-Update

Re: (Related) XSP Bug: xsp:element used as root element

2002-09-12 Thread Ugo Cei
[I think this is more appropriate for cocoon-users. Also, don't post HTML messages to the list, please.] Sanne de Roever wrote: > Hi, > > I've been using the xsp:element, and xsp:attribute tags with succes when > creating svg. > But now I would like to wrap the root element svg in such a tag,

How to use Request-parameter Selector with the submit button

2002-09-12 Thread Antonio Gallardo Rivera
Hi all! I tried to resolve a problem about nested in C2.1. To try to work with a database actions and formvalidator. Given 2 submit buttons in a form: one for update and the second for delete: The name of the parameters will be: cocoon-action-Update cocoon-action-Delete How I can know in th

Re: Request paramteres in a xsl

2002-09-12 Thread Barbara Post
The "best" way (easier) is to use : at the beginning of your xsl, then use it like a variable. And in the sitemap, add to the xslt : Babs - Original Message - From: "Johannes Wechsler" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 12, 2002 1:47 PM Subject:

Request paramteres in a xsl

2002-09-12 Thread Johannes Wechsler
Hi, I want to access a request parameter in a xsl. Therefore I use the code: My request string is: http://localhost:8080/cocoon/dev/ownActionItems.htm?pName=Projekt2&xpath=//p rojects/project[2]/actionItem Is this fundamentally the right way to access a request parameter? Do I have to add any

[offtopic] bugzilla and votes ?

2002-09-12 Thread Barbara Post
Please can someone tell me how long I am given Y votes at Bugzilla? I mean : if I use all my votes to vote for bugs, would I recover voting rights ? I did not find this in the documentation... :-/ Thanks, or maybe I misunderstood ? a. every user is given Y votes for a T time, or b. every user is

Re: putting a request param in session and using it in the sitemap

2002-09-12 Thread Bobby Mitchell
Yvan Peter wrote: > >Hello, > >Here is the behavior i would like to achieve in the sitemap : > >A first access will be with an URL of that pattern : > http://localhost/login?device={Voice, WAP or Web} > >Then the device parameter is not given anymore and of course, i need > t

Re: [2.1 bug ?] duplication of input fields/parameters

2002-09-12 Thread Barbara Post
Hi Antonio, this bug says that nested actions don't execute... In my case the (nested) action that sends email buggy executes... ok it's known now. Will add a short note to the bug report. So let's hope someone has a clue soon... I absolutely cannot switch to 2.0.3 again because of several transf

Re: [2.1 bug ?] duplication of input fields/parameters

2002-09-12 Thread Antonio Gallardo Rivera
> Log doesn't really help since there are nested actions... Hi Barabara: The bug in C2.1 lastest CVS is the nested actions! I have the same problem, I cannot use the tutorial (about database form-validation). This is a really hard problem. I send you some responses about the same problem: Ge

Re: issues with javascript

2002-09-12 Thread Emmanuil Batsis (Manos)
Barbara Post wrote: > Hi Manos and the others who replied :-) > > The javascript code should be written only if I have an "error" tag for a > specific text input field. > > This error tag is produced by form validation. Then there is the classical > code : > > > > >

Re: issues with javascript

2002-09-12 Thread Barbara Post
Hi Manos and the others who replied :-) The javascript code should be written only if I have an "error" tag for a specific text input field. This error tag is produced by form validation. Then there is the classical code : _ is-null [ex

[2.1 bug ?] duplication of input fields/parameters

2002-09-12 Thread Barbara Post
I upgraded to latest CVS yesterday, jdk 1.3.1, (East Coast noon) but this did not solve the issue, do I have to submit to bugzilla ? : Log doesn't really help since there are nested actions... - I have a form validation with simple form transformer. When the form is correctly filled an emal is

RE: Cocoon and PDF/HTML-Layout Tools Integration (for expl. QuarkXPress,... etc.)

2002-09-12 Thread Conal Tuohy
> -Original Message- > From: massimo [mailto:[EMAIL PROTECTED]] > Subject: Cocoon and PDF/HTML-Layout Tools Integration (for expl. > QuarkXPress,... etc.) > Does someone have made already some experience whit the > integration of > PDF/HTML-Layout tools? > or are there other possible ways

Re: issues with javascript

2002-09-12 Thread Emmanuil Batsis (Manos)
Hi Barbara, Nothing to do with cocoon, but you are right; the document is not fully loaded and that's the problem. Try wrapping your code in a function and call it via the onload attribute of the body tag. BTW, you should be using DOM nowdays: function init() { document.getElementById('my_

Re: Sitemap Question

2002-09-12 Thread Barbara Post
Hem, I guess you can write an Action that uses request parameters, formats them the way you want, and puts new parameters in the sitemap, with the name of your request parameters but new values... then write what "next page" wants to do... ? What's your need ? Babs - Original Message - F