RE: Can I pass a sitemap resource as a parameter to an xslt transformer?

2011-01-14 Thread Binkley, Peter
I would use a regular pipeline for the authors list, with caching turned on (so it doesn't run the query every time - check the cocoon docs for how to control expiry etc.): ... And then include it from within the article.xsl using the cocoon: prot

RE: Regexp matcher with digits

2009-06-01 Thread Binkley, Peter
Did you try "(\.*)/(\d)$"? Peter > -Original Message- > From: Mansour Al Akeel [mailto:mansour.alak...@gmail.com] > Sent: Monday, June 01, 2009 12:45 PM > To: users@cocoon.apache.org > Subject: Re: Regexp matcher with digits > > Can someone kindly answer this question and give an ex

RE: webdav transformer

2008-04-17 Thread Binkley, Peter
your problem, and now you don't have to wrap your request into a webdav request. Regards, Jeroen [1] http://wiki.apache.org/solr/SolrForrest -Original Message- From: Binkley, Peter [mailto:[EMAIL PROTECTED] Sent: Wed 4/16/2008 5:11 PM To: users@cocoon.apache.org Subject: RE: w

RE: webdav transformer

2008-04-16 Thread Binkley, Peter
Solr speaks POST, and so does the webdav transfomer. I've blogged about this here: http://www.wallandbinkley.com/quaedam/?p=104 . I was surprised how difficult it was to find an easy way to post blocks of XML (as opposed to name-value pairs) without writing code. No doubt this could be added to

RE: Problems with images and CSS in modularized Cocoon webapp

2008-02-25 Thread Binkley, Peter
Are you using the resource: protocol in your map:read references? e.g. The Forms block samples provide examples of this kind of usage. Peter From: Magnus Haraldsen Amundsen [mailto:[EMAIL PROTECTED] Sent: Monday, February 25, 2008 5:02 AM To: users@cocoon.

RE: Help in building Cocoon

2008-02-08 Thread Binkley, Peter
Does this help? http://www.wallandbinkley.com/quaedam/?p=115 Peter -Original Message- From: Ford, Jennifer M. [mailto:[EMAIL PROTECTED] Sent: Thursday, February 07, 2008 3:33 PM To: users@cocoon.apache.org Subject: Help in building Cocoon I just downloaded Cocoon 2.1.11 and I have not

RE: Process multiple XML files

2007-10-26 Thread Binkley, Peter
I'd use Ant instead of Cocoon for this. I've blogged a couple of techniques that might help: http://www.wallandbinkley.com/quaedam/?p=63 (for doing the XSL processing) http://www.wallandbinkley.com/quaedam/?p=99 (for posting the output into eXist) Peter -Original Message- From: thoma

updating css class in ajax form

2007-10-09 Thread Binkley, Peter
I've got a form in which a repeater generates cells of a table. Within each cell there is a select element. I want the css class of the element to be set to the value of the select whenever the select changes. I've done this in the template like this: I ha

Cocoon Plumber

2007-02-05 Thread Binkley, Peter
I've just released a tool that other Cocoon users might find useful. It's a Firefox extension that shows your current pipeline in a sidebar when you view a Cocoon-generated page. (Some simple extra pipelines have to be added to your sitemap to provide the sidebar view.) Within the sidebar, you can

RE: character encoding: utf-8 and ISO-8859-1 on Mac OS X with Safari

2006-09-15 Thread Binkley, Peter
Have you set the form parameter encoding to UTF-8? (http://wiki.apache.org/cocoon/RequestParameterEncoding). Peter -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Frank MW Sent: Friday, September 15, 2006 10:08 AM To: users@cocoon.apache.org Subject: character enc

RE: Ajax forms can't handle unicode?

2006-08-31 Thread Binkley, Peter
ible) (Note that setting theactual encoding is different from using an encoding descriptionrequest header.)The easiest way, if you want a fix, is to use an encode-uri functionon the server and in the ajax _javascript_, then the transfer encodingwill not matter.RegardsHansOn 8/30/06, Binkley, Peter <

Ajax forms can't handle unicode?

2006-08-30 Thread Binkley, Peter
I'm updating an old Cforms project from 2.1.7 to 2.1.9 and adding Ajax. The setup is similar to the form1.flow sample, where the uploaded form is sent to a pipeline that starts with a jx template. I've set things up so form fields are interpreted as UTF-8. Everything works under 2.1.9 if I don't tu

RE: Is using Cocoon a good idea?

2006-06-22 Thread Binkley, Peter
Title: Re: xmldb query on Cocoon 2.1.9 = error; works on 2.1.7 Here's one approach: you could add a distinctive xsl:message to every template (write a stylesheet to do this automatically to all your existing stylesheets) containing the name of the file and the match attribute of the template

RE: I18n problem - need some help : urgent

2005-12-20 Thread Binkley, Peter
Try . The i18n transformer is very particular about the output method. Peter Peter Binkley Digital Initiatives Technology Librarian Information Technology Services 4-30 Cameron Library University of Alberta Libraries Edmonton, Alberta Canada T6G 2J8 Phone: (780) 492-3743 Fax: (780) 492-9243

RE: Multi channel Publishing using Open Office and Cocoon

2005-09-21 Thread Binkley, Peter
Here's another approach, using some more recent Cocoon machinery (I think): http://137.207.120.195:8080/cocoon/wampum/repo/OpenOfficeRocks.odt Peter > -Original Message- > From: Upayavira [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 21, 2005 12:50 PM > To: users@cocoon.apache

RE: CForms, repeater and continuation

2005-04-18 Thread Binkley, Peter
Could you save the form into a session variable (i.e. use the session transformer in the success pipeline) at the point where the user exits the form, and then aggregate the old data from the session variable and the new data from the current context when initiating a new form? Otherwise you're st

binding on element name

2005-03-15 Thread Binkley, Peter
Here's a binding question. I'm working with a record structure that can have seven different date fields, which are distinguished by element name: , , etc. They all have the same internal structure (several attributes, text content), and they're all optional and repeatable. Sounds like an ideal pla

RE: class widgets

2005-03-15 Thread Binkley, Peter
get through this project... Peter -Original Message- From: beatejung [mailto:[EMAIL PROTECTED]] Sent: Tue 3/15/2005 12:49 PM To: users@cocoon.apache.org Subject: Re: class widgets hallo peter, Am Dienstag, 15. März 2005 20:27 schrieb Binkley, Peter: > I'm starting to get into class

class widgets

2005-03-15 Thread Binkley, Peter
Title: class widgets I'm starting to get into class widgets in Cocoon Forms, and I'm not sure if my problem fits their use. I have an XML structure in which several elements have an identical set of four optional attributes, as well as their own unique attributes. I've declared a widget clas

RE: Random selection

2004-09-30 Thread Binkley, Peter
Title: Message This site has an example of using the java extensions of Xalan to generate a random number:   http://cafeconleche.org/books/xmljava/chapters/ch17s03.html   You could build that into a stylesheet easily enough, though it would take a little extension to get it to generate two q

validation: repeater must have at least one row

2004-09-10 Thread Binkley, Peter
Is there a way to set a validation rule to ensure that a repeater has at least one row? According to the documentation, "... a repeater widget does not implement ValidationErrorAware. However, a validator attached to a repeater could perform inter-row checks on the fields in the different rows of

on-insert-row and default values

2004-06-09 Thread Binkley, Peter
I'm trying to set default values in the fields of a new row in Cocoon forms (with an XML back end, not a bean). In my binding I've tried things like this: 2004-06-09 But the value doesn't get through to the form. I can't find an example that illustrates this problem. What

RE: continuation passes document to pipeline

2004-06-03 Thread Binkley, Peter
If anyone else is interested, there's some follow up (including a good workaround from Askild Aaberg Olsen) at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=29381. Peter > -Original Message- > From: Binkley, Peter [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 02,

continuation passes document to pipeline

2004-06-02 Thread Binkley, Peter
In the forms block, I'd like to adapt the form2 example so that the edited document gets passed into a pipeline for processing. In Woody in 2.1.4, I was able to use cocoon.sendPage for this: cocoon.sendPage("success-pipeline", {document: document}); The success pipeline started with a jx generato

RE: xsl to convert xml to excel

2004-03-05 Thread Binkley, Peter
I think you need to replace the match in your last template: As it is now, it's going to catch a lot of calls that it shouldn't, and prevent the process from reaching some other templates. Also, I don't think this is doing what you want: It should just be . Peter Pete