Cocoon 2.1 migration problem with sub-sitemap

2003-06-18 Thread Peter Klotz
Hi, I have migrated a sub-sitemap from Cocoon 2.0.4 to 2.1m3. With 2.0.4 everything worked fine, now with 2.1 I only get empty pages. The reason seems to be that the sub-sitemap in cocoon/sims is never really called. Whenever I call a URL with sims/something I get empty page with NO errors

Building lucene index without crawling?

2003-06-16 Thread Peter Klotz
Hi, I have Cocoon 2.0.4. Is it possible to generate a Lucene index from XML content without using a crawler? The question might sound strange but the reason is that I could produce all content and all links to index from a pipeline. Just indexing and searching that would be fine. Furthermore

map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Peter Klotz
Hi, I have a pipline that generates a file in the filesystem using a generator and a transformation. The output is empty but I want to present in the same request one of the generated files (index.html). I tried to use map:generate src=.../ map:transform type=xslt src=.../ map:redirect-to

Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Peter Klotz
map:call transfers to a pipeline fragment defined in map:resources, but I don't think it will help you specifically now that I see what you are trying to do. map:call does not work the same way as map:redirect-to does not work because the steps before are not executed. Both must be the first

Re: map:redirecto-to after map:transform/map:generate?

2003-06-04 Thread Peter Klotz
Hi Joerg, map:call does not work the same way as map:redirect-to does not work because the steps before are not executed. Both must be the first and only statements in a map:match. [...] fortunately the above is not true ;-) map:call resource=resourcename/ is a sitemap internal redirect

Re: R: R: R: encoding url for reader / better ways pass strings toareader?

2003-06-01 Thread Peter Klotz
Hi, is the EncodeURL transformer not supposed to do exactly this? But at least in Cooon 2.0.4 it does not seem to work, the URLs are not changed at all. But either way, a transformer or such a action should be a integral part of Cocoon. Peter Andrea Pierini wrote: [...] -Messaggio

Getting context and work directory in SourceFactory or Action

2003-04-03 Thread Peter Klotz
Hi, it looks like a Action or SourceFactory cannot be Contextualizable? I want to get the context directory of the webapp or the Cocoon work directory. I though that in order to get that I let the Action and the SourceFactory implement Contextualizable and then with workDir =

Why can't a Action be Contextualizable??

2003-03-25 Thread Peter Klotz
Hi, I wanted to make my custom action Contextualizable in order to get the base directory of the action. But it looks like this is never called or I get errors when trying to create the component. Why? I inherit from ConfigurableComposerAction to be configurable and Composable as well.

Source using Component via ECM

2003-03-25 Thread Peter Klotz
Hi, I have a custom source that gets the component manager from the SourceFactory. So good so fine, but obviously when the source looks up its backend component it does not find it, although it is configured in cocoon.xconf as component. How is this suposed to work? Am I missing something?

Logging in Cocoon Source

2003-03-25 Thread Peter Klotz
Hi, If I want to log messages in a custom source the only way I could specify a category would be on the SourceFactory, which I did. Then in the getSource() I check whether the source produced is LogEnabled and if so pass on the Logger from the SourceFactory to the Source. In cocoon.xconf the

Zip File Generator

2003-03-07 Thread Peter Klotz
Hi, I'm wonderning how one could read a file that is compressed/archived e.g. zip. Let's say I have a XML file that is compressed and so I would like to uncompress it and then use this file in the normal file generator in a pipeline. Is this possible and how? I also looked whether I could use a

Source Logging in Coccoon

2003-02-27 Thread Peter Klotz
Hi, I have defined my own logger in the Cocoon logkit.xconf for a custom action and a custom source that I'm running in Cocoon. In both cases I have attached a logger=blah to the protocol definition of the source in cooon.xconf protocol class=... name=... logger=blah/ and for the action in the

Getting application base directory

2003-02-14 Thread Peter Klotz
Hi, simple question, how can I get in a Cocoon action or source etc. the base directory of my application that I was called for? I though that the Contextualize interface would be used for this with the Context.get() method, but there is no documentation of the values that one can get from the

XInclude or CInclude working in Cocoon 2.0.4?

2003-02-14 Thread Peter Klotz
Hi, I'm generating XInclude or CInclude URLs and use the corresponding transformator. Unfortunately none of the ways seemed to work. I have file:-URLs with absolute path names, BTW. 1. Xinclude xi:include href=file:/path/file.xml/ the output is empty and cut off. There was a posting that one

Aggregating files using patterns?

2003-02-12 Thread Peter Klotz
Hi, how can one generate a document from multiple sources without knowing their exact names using a pattern? Given some files blah_*.xml, I would like to aggregate all these and get one XML document to apply stylesheets etc. But I have never seen that it is possible to use patterns in

Re: Aggregating files using patterns?

2003-02-12 Thread Peter Klotz
then automatically call the second pipeline for each filename? Peter Klotz wrote: how can one generate a document from multiple sources without knowing their exact names using a pattern? Given some files blah_*.xml, I would like to aggregate all these and get one XML document to apply stylesheets etc

How to use LuceneXMLIndexer?

2003-02-06 Thread Peter Klotz
Hi, first please don't answer with see the search web app in the Cocoon distribution, I looked at that very thoroughly. But I'm still not clear what role the LuceneXMLIndexer plays. Can anybody please give an example? I think that the build(URL url) method of LuceneXMLIndexer returns a List of

Patterns in aggregation or sources

2003-02-05 Thread Peter Klotz
Hi, I don't find the answer in the docu so maybe someone can tell me. Is it possible to use patterns/regexp in source for a generator or in part of a aggregation? I'd like to do something like this e.g. in the sitemap: map:aggregate element=page map:map src=file:/tmp/*.xml/ /map:aggregate