Re: Caching results of SQL Queries?

2002-11-15 Thread Justin Fagnani-Bell
Jeremy, If you're doing the SQL queries in a custom component (generator, transformer) you can use Cocoon's caching system. Have you class implement Cachable, and in the generateValidity() method you can return an object with the last modification date of the database. see :

Re: URL Theory Best Practices

2002-11-09 Thread Justin Fagnani-Bell
On Saturday, November 9, 2002, at 12:08 PM, Miles Elam wrote: Tony Collen wrote: Comments inline... Miles Elam wrote: But can't delivered types differ by the incoming client? Yes, but a problem then arises when someone is using IE and they want a PDF, when your user-agent rules will

Is anyone using cocoon.xconf files in Mounts?

2002-11-08 Thread Justin Fagnani-Bell
I'm having problems with Cocoon Mounts and using cocoon.xconf files in the mount sub-directories. I've posted about this a few times but haven't gotten a response, so I'm wondering if anyone out there is using mounts and cocoon.xconf files. My problem is that I can't access JDBC datasources

Re: URL Theory Best Practices

2002-11-07 Thread Justin Fagnani-Bell
Tony, I've wrestled with similar problems for a while with my content management system, which uses a database for content and structure. I'm in the process of setting the system to use file extensions for the client to specify the file type and have Cocoon return that type. If they request

Re: Selecting serializer based on URI

2002-11-04 Thread Justin Fagnani-Bell
Werner, You'll need to use a selector to do this, parameter selector works well. Try something like this: map:match pattern=something.* map:generate src=something.xml/ map:select type=parameter map:parameter name=parameter-selector-test value={1}/ map:when

Re: Accessing uri-prefix from within sub-sitemaps?

2002-11-04 Thread Justin Fagnani-Bell
, Joerg Justin Fagnani-Bell wrote: Hi, I'm using sub-sitemaps now to host several projects at once in my development environment. I access the projects through a URL that looks like this - http://localhost/projects/proj1;, and in the sub-sitemaps I have a XSLTransformer prepend a sitemap

Re: dynamically choosing an action at runtime

2002-11-04 Thread Justin Fagnani-Bell
Josema, You don't have to include the parts of your pipeline that are the same in the map:when elements. You can just include the map:act element, since it appears that you're not returning any parameters from your action, and then you won't have to duplicate the part that doesn't vary.

Re: Anyone? (was Re: More sub-sitemap questions)

2002-11-04 Thread Justin Fagnani-Bell
datasources). The scenario is that I can access components defined in sub-cocoon.xconf files, but only if they don't require a ComponentSelector. If they require a ComponentSelector it can't find the component and I get errors. On Thursday, October 31, 2002, at 09:38 AM, Justin Fagnani-Bell

Re: Anyone? (was Re: More sub-sitemap questions)

2002-11-04 Thread Justin Fagnani-Bell
datasources). The scenario is that I can access components defined in sub-cocoon.xconf files, but only if they don't require a ComponentSelector. If they require a ComponentSelector it can't find the component and I get errors. On Thursday, October 31, 2002, at 09:38 AM, Justin Fagnani-Bell

Anyone? (was Re: More sub-sitemap questions)

2002-10-31 Thread Justin Fagnani-Bell
doesn't have a datasource called NodeDB. Is this possible? If so, is this a bug, or do I need to do something different? Any help is much appreciated. Thanks, Justin On Tuesday, October 29, 2002, at 01:51 PM, Justin Fagnani-Bell wrote: Good afternoon (in Cali), As I mentioned in my last

Re: Pipeline vs Pipeline(S)

2002-10-31 Thread Justin Fagnani-Bell
From what I understand there isn't a whole lot of difference, but having separate pipelines allows you to use different pipeline implementations to allow for things like caching, logging, etc. Justin On Thursday, October 31, 2002, at 11:59 AM, Steven Punte wrote: What the difference between

More sub-sitemap questions

2002-10-29 Thread Justin Fagnani-Bell
Good afternoon (in Cali), As I mentioned in my last email (anyone figure an answer yet? I haven't), I'm trying to keep all my Cocoon projects running live on my development server via auto mounting sub-sitemaps. The ability for each mount to have it's own cocoon.xconf file seems to be the

Accessing uri-prefix from within sub-sitemaps?

2002-10-28 Thread Justin Fagnani-Bell
Hi, I'm using sub-sitemaps now to host several projects at once in my development environment. I access the projects through a URL that looks like this - http://localhost/projects/proj1;, and in the sub-sitemaps I have a XSLTransformer prepend a sitemap variable called base to the beginning

Re: Running command-line programs in a pipeline

2002-10-02 Thread Justin Fagnani-Bell
Peter, You could certainly write your own serializer to do this. I haven't written a serializer, but I'm pretty sure the input needs to be SAX events, so the only ways you could use XSLT to output LaTeX is if you did the transformation within the serializer, or wrapped the LaTeX in XML.

Re: PERFUME PROPOSAL: SOAP FOR COCOON

2002-09-23 Thread Justin Fagnani-Bell
On Sunday, September 22, 2002, at 08:54 PM, Steven Punte wrote: PERFUME: 1) The implementation of Perfume shall result in three distinct Cocoon components: a) A generator that can receive a soap message and turn it into

Re: PERFUME PROPOSAL: SOAP FOR COCOON

2002-09-21 Thread Justin Fagnani-Bell
On Saturday, September 21, 2002, at 05:37 PM, Steven Punte wrote: PERFUME: 1) The implementation of Perfume shall result in three distinct Cocoon components: a) A generator that can receive a soap message and turn it into

Using Cocoon via the command line?

2002-08-27 Thread Justin Fagnani-Bell
I can't find any documentation on this, but how do you use Cocoon from the command line? I've buit a site that's going to be hosted on a plain old webserver and need to export the cocoon generated pages. I've been doing this with GoLive's download site feature, but I know there's a better

Re: Using views

2002-08-20 Thread Justin Fagnani-Bell
Igor, I think you can do what you want with a map:aggregrate, but not in every pipeline. Try somehting like this: map:match pattern=** map:aggregate element=site map:part src=cocoon:/part/{1}/ map:part src=cocoon:/menu.xml/ /map:aggregate map:transform src=something.xsl/

Re: FP and Cocoon2

2002-08-17 Thread Justin Fagnani-Bell
Vadim, fp was in Cocoon 1.x. It's a forms processing logicsheet that will update xml files. Dwayne, I don't think FP made it to Cocoon 2. Justin On Friday, August 16, 2002, at 12:52 PM, Vadim Gritsenko wrote: Dwayne Kemp wrote: Im using Cocoon 2.0.3 with Tomcat 4.0.1. I have this code in

Re: Can cocoon write pdf to a file?

2002-08-15 Thread Justin Fagnani-Bell
Because what happens when someone then wants to do the same thing with a GIF, or HTML, or SWF? An action that writes any resource to a file can be reused in different circumstances. Justin On Thursday, August 15, 2002, at 01:46 PM, Argyn Kuketayev wrote: I can't think of any way to do

Arrgh, more XML/HTML problems now it's ''

2002-08-10 Thread Justin Fagnani-Bell
Hi again, warning this is a long post /warning I'm still working on HTML forms where the user (me for the moment:) is supposed to input HTML into a text area that will be stored in an XML format. I'm still having problems, so I haven't written a SUMMARY post... My new problem occurred

Re: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread Justin Fagnani-Bell
? If not, why? Roman Vadim Gritsenko wrote: From: Justin Fagnani-Bell [mailto:[EMAIL PROTECTED]] Hi list, I have a page with a form generated by Cocoon. There's a textarea in the form where you can edit some xml (possibly xhtml). Because the form is an HTML form I'm using

Re: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread Justin Fagnani-Bell
Yes! finally. Here's what I did. I added a cdata tag around my textarea tags in my stylesheet, then put cdata-section- elementscdata/cdata-section-elements in my serializer definition. Now even when the textarea has no text the tag doesn't get touched. The browser just ignores the made up

Re: Keeping HTMLSerializer from altering markup?

2002-08-09 Thread Justin Fagnani-Bell
!-- cdata-section-elementscdata/cdata-section-elements -- /map:serializer but every parameter is ignored: I get no doctype declarations and no cdata sections (even when the comment !-- -- is removed). What's up with XMLSerializer?? Regards, Joerg Justin Fagnani-Bell wrote: Yes

Keeping HTMLSerializer from altering markup?

2002-08-08 Thread Justin Fagnani-Bell
Hi list, I have a page with a form generated by Cocoon. There's a textarea in the form where you can edit some xml (possibly xhtml). Because the form is an HTML form I'm using an HTMLSerializer. But I want to keep the serializer from altering the markup in the textarea, because if it's

How to use Redirector...

2002-08-01 Thread Justin Fagnani-Bell
Is there any documentation on how to use either the Redirector passed to Action.act() or the sitemap map:redirect-to tag? I've used redirect-to successfully but I would still like some documentation to make sure I'm doing things correctly. I can't find anything in the cocoon docs and the api

Re: How to use Redirector...

2002-08-01 Thread Justin Fagnani-Bell
for URL encoded sessions? Justin On Thu, 2002-08-01 at 10:47, Justin Fagnani-Bell wrote: Is there any documentation on how to use either the Redirector passed to Action.act() or the sitemap map:redirect-to tag? I've used redirect-to successfully but I would still like some documentation to make

Initialization and background threads

2002-08-01 Thread Justin Fagnani-Bell
Hi List, The web app I'm developing with Cocoon needs to initialize a few things at startup and perform some tasks in the background like database cleanup, checking for mail, automating site updates. Is there a good way to integrate this with Cocoon? For the initialization, I'm reading in