source-write et copie des namespace

2006-07-05 Thread Eric Cambray
Bonjour, j'ai un problème avec les transformations cocoon. J'utilise un source:write afin d'enregistrer en dur des fichiers. Les fichiers sont bien créés cependant les espaces de nom eux ne le sont pas (il ne garde que ceux utilisés dans le fichier, mais j'en voudrais des supplémentaires pour

Re: Dynamic selection list

2006-07-05 Thread Derek Hohls
Are people still writing apps in XSP? I thought that usage of XSP was deprecated and that it had long been supplanted by other, more robust, technologies and techniques. FWIW, the way I do this is to use an SQLTransformer and stylesheet combo: 1. The query (say, XYZ-lookup.xml): ?xml

Re: cache

2006-07-05 Thread Antonio Gallardo
Hi, See: http://cocoon.apache.org/2.1/userdocs/concepts/caching.html Best Regards, Antonio Gallardo Bokluci escribió: Is there any way to make cocoon cache last not so long? - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Looking for SAX parsers benchmark

2006-07-05 Thread Jimmy Zhang
http://vtd-xml.sf.net/benchmark.html - Original Message - From: Cocoon Man To: users@cocoon.apache.org Sent: Tuesday, July 04, 2006 1:20 AM Subject: Looking for SAX parsers benchmark Hello, I looked a little on the net for some SAX parsers benchmark but

Re: Looking for SAX parsers benchmark

2006-07-05 Thread Cocoon Man
Thanks for the link. It seems VTD-XML is very fast. Have you tried to integrate it to Cocoon 2.1 ? Does it support namespace ? Regards, 2006/7/5, Jimmy Zhang [EMAIL PROTECTED]: http://vtd-xml.sf.net/benchmark.html - Original Message - From: Cocoon Man To: users@cocoon.apache.org

RE: Dynamic selection list

2006-07-05 Thread Warrell
Wh.. Why make life difficult? See http://cocoon.apache.org/2.1/userdocs/widgetconcepts/selectionlists.html and use a Cocoon pipeline which has a matcher that uses the SQLTransformer to get the results out of the database. Hope this helps. -Original Message- From: Toby

Ajax and Cocoon - a wish?!

2006-07-05 Thread Derek Hohls
Can't but help wish that this book: http://www.cristiandarie.ro/ajax-php/ was entitled: AJAX and Cocoon: Building Responsive Web Applications Many of the chapters would not change at all (and issues such as SVG fit perfectly into the Cocoon paradigm -there is even an Appendix on XSLT and

Alternatives to XSP? (was: Dynamic selection list)

2006-07-05 Thread Toby
Derek Hohls wrote: Are people still writing apps in XSP? I thought that usage of XSP was deprecated and that it had long been supplanted by other, more robust, technologies and techniques. Such as? I have lots of SQL queries to make, all of which depend on values gathered from the previous

RE: Alternatives to XSP? (was: Dynamic selection list)

2006-07-05 Thread Ard Schrijvers
Derek Hohls wrote: Are people still writing apps in XSP? I thought that usage of XSP was deprecated and that it had long been supplanted by other, more robust, technologies and techniques. Such as? JX, flowscript, cforms (javaflow though not yet used)Personally, I haven't

Widget javascript validation problem

2006-07-05 Thread Andrew Madu
Hi,I am having an issue with a widget form validation under cocoon 2.1.8. Basically what I have is a selection box with various credit card types, (visa, matercard...) etc, and based on the card selected a check is done on the credit card number field to make sure that the number of digits entered

RE: Widget javascript validation problem

2006-07-05 Thread Stewart, Gary
-Original Message- From: Andrew Madu [mailto:[EMAIL PROTECTED] Sent: 05 July 2006 12:31 To: users@cocoon.apache.org Subject: Widget javascript validation problem fd:validation fd:javascript var success = true; var creditCardType = widget.lookupWidget(credit);

Re: Widget javascript validation problem

2006-07-05 Thread Andrew Madu
Gary,At a glance it looks like *account_no.setValidationError* is wrong as you declared the variable as *accountNumberLength*. This is why I like strict type checking. that now works fine now. I remember having done the same mistake a while ago, and was trying to chek against the actual widget id

RE: Widget javascript validation problem

2006-07-05 Thread Stewart, Gary
-Original Message- From: Andrew Madu [mailto:[EMAIL PROTECTED] Sent: 05 July 2006 13:13 To: users@cocoon.apache.org Subject: Re: Widget javascript validation problem The other problem I am having is with the widget datatype definition for account_no: fd:datatype base=integer I've

Re: Widget javascript validation problem

2006-07-05 Thread Andrew Madu
Gary,if(!/^[0-9]{16}$/.test(account_no.value)) { //This is invalid } will match an account number with no spaces.many thanks for that heads up. All is working a treat now.regardsAndrew

Re: cache

2006-07-05 Thread Jason Johnston
Ard Schrijvers wrote: See: http://cocoon.apache.org/2.1/userdocs/concepts/caching.html About that page, and then particularly The Default Caching Algorithm The default algorithm uses a very easy but effective approach to cache a request: The pipeline process is cached up to the most possible

RE: cache

2006-07-05 Thread Ard Schrijvers
Ard Schrijvers wrote: See: http://cocoon.apache.org/2.1/userdocs/concepts/caching.html About that page, and then particularly The Default Caching Algorithm The default algorithm uses a very easy but effective approach to cache a request: The pipeline process is cached up to

Tests on Cocoon

2006-07-05 Thread Lionel Crine
Hi all, I'm doing some load tests (using jmeter) on my cocoon application (in tomcat) and I encountering a trouble. For information, I'm using esql taglib to request an oracle database. What is not working are particular URL launching from JMETER;. The sql request is created and executing

HTML tag in I18n ?

2006-07-05 Thread Lionel Crine
Hi, Can i use html tag in I18n declaration file ?? Lionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Tests on Cocoon

2006-07-05 Thread Ard Schrijvers
I am not familiar with jmeter, but just from client site you can get quite some information on performance by using solex (an eclipse plugin). Only, solex cannot cope with sessions, so when sessions are important, I use charles. I don't know if they meet your wishes. Furthermore, I don't know

RE: HTML tag in I18n ?

2006-07-05 Thread Ard Schrijvers
plz be more specific and mail a code snippet to explain what you want Ard Hi, Can i use html tag in I18n declaration file ?? Lionel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: cache

2006-07-05 Thread Jason Johnston
Ard Schrijvers wrote: See: http://cocoon.apache.org/2.1/userdocs/concepts/caching.html About that page, and then particularly The Default Caching Algorithm The default algorithm uses a very easy but effective approach to cache a request: The pipeline process is cached up to the

upload widget

2006-07-05 Thread Roland Bair
Hello there :) I am new to this mailing list - so plz be patient ! I am working with cocoon 2.1.8 and i have problems with ajax and the upload widgets... I read in the archive that 2.1.9 may solve this problem, true/false? is there any possibility to patch 2.1.8 to accept upload widgets

Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
Hi,I am having some problems implementing a continuation bookmark. Basically a user enters some form details and submits the details:function confirmStage() { //2. Get card details. var form = new Form(forms/CreditCardDetails.xml); form.showForm(CreditCardDetails.xml, {userGlobal:userGlobal});

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
Ard,sorry, I still don't get it!! In the context of:var bkm = cocoon.createWebContinuation();..cocoon.sendPageAndWait(orderFail.xml, {bookmark:bkm, OrderDetails:neworder, transaction_message: response.getCVV2Code()});how do I implement :Form.prototype.sendFormAndWait =

RE: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Ard Schrijvers
I mean that the following piece of code has the behavior you want I think: var comingBack = false; var bookmark = cocoon.createWebContinuation(ttl); // Attach the form to the continuation so that we can access by just knowing the continuation id bookmark.setAttribute("form", this.form);

RE: cache

2006-07-05 Thread Ard Schrijvers
/snip Consider a counter-example: map:generate src=myfile.xml /!-- cacheable -- map:transform type=xslt src=transform1.xsl /!-- cacheable -- map:transform type=sql /!-- non-cacheable -- map:transform type=xslt src=transform2.xsl /!-- normally cacheable but not in this case since it

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
Hi,I may be wrong here but that sure looks like overkill to me. I am generating a continuation using: var form = new Form(forms/CreditCardDetails.xml); form.showForm(CreditCardDetails.xml, {userGlobal:userGlobal}); var model = form.getModel();var bizData = {fname : model.fname, lname :

RE: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Ard Schrijvers
Why are you actually creating your own bkm? cocoon.sendPageAndWait already returns a continuation. Can you try removing the bkmvar and just do a cocoon.sendPageAndWait("orderFail.xml"); Try the following: var finished = false;do { var k = cocoon.sendPageAndWait("orderFail.xml");

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
Problem solved!!The idea is to place createWebContinuation before the form definition section!! var bkm = cocoon.createWebContinuation();var form = new Form(forms/CreditCardDetails.xml); form.showForm(CreditCardDetails.xml, {userGlobal:userGlobal}); var model = form.getModel();var bizData =

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
On 05/07/06, Ard Schrijvers [EMAIL PROTECTED] wrote: Why are you actually creating your own bkm? cocoon.sendPageAndWait already returns a continuationAs stated in the cocoon wiki, the reason is:'createWebContinuation Function [WebContinuation] createWebContinuation() Creates a new

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Toby
Andrew Madu wrote: map:match pattern=**.kont map:select type=request-method map:when test=POST map:call continuation={request-param:continuation-id}/ /map:when map:otherwise/ /map:select /map:match I think the call should be map:call continuation={1}/ I'm also

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
TobyI'm also not sure that map:when test=POST is what you want to do. Why? regardsAndrew

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Toby
Andrew Madu wrote: Problem solved!! Isn't this what solved your problem, according to your sitemap? input value=${bookmark.id} type=hidden name=continuation-id/ Toby - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Andrew Madu
On 05/07/06, Toby [EMAIL PROTECTED] wrote: Andrew Madu wrote: Problem solved!!Isn't this what solved your problem, according to your sitemap?input value=${bookmark.id} type=hidden name=continuation-id/ That plus the fact that I moved the continuation command before the form creation. But yes, the

Re: Problem with continuation bookmark in flowscript/jxt

2006-07-05 Thread Toby
Andrew Madu wrote: You leave code for a while, and you forget everything...well I do!! We all do :-) That's what comments are for, to an extent. I'm also not sure that map:when test=POST is what you want to do. Why? My mistake, that part is right. Toby

SVG serializer renders PNGs to arbitrary width

2006-07-05 Thread Stephen Winnall
I am trying to generate PNG text icons from SVG in Cocoon. I just want a PNG with no extra space around the text. I use the following match in my sitemap and generate the appropriate text icon by calling 1) .../nav2.png?icon-text=abc 2) .../nav2.png?icon-

Re: Looking for SAX parsers benchmark

2006-07-05 Thread Antonio Gallardo
Here is another interesting link. http://blog.reverycodes.com/archives/40.html Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]