cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler" <cziege...@s-und-n.de>
Subject RE: CVSView block
Date Thu, 09 Jan 2003 07:20:20 GMT


From: mattam@netcourrier.com [mailto:mattam@netcourrier.com]
> 
> On Wed, Jan 08, 2003 at 04:12:12PM +0100, Carsten Ziegeler wrote: 
> > Hi,
> > 
> > what is exactly your configuration problem? What do you want to 
> use/write?
> > 
> > Carsten
> > 
> 
> I need to configure the root path for the generator, at construction
> time, so that it processes the (mandatory) path parameter (given in the
> pipeline) relative to the root. So i'll need either to write the config
> parameter inside the <xmap:generator> element and change the schemas, or
> find another way to give a parameter to my generator outside the
> pipeline ones. I could also remove this parameter, let it be set during
> pipeline processing. 
> 
Ok, let's see if I understand you correctly. You define your generator:

<map:generators default="file">
    ...
    <map:generator name="cvsview" ....>
      <rootpath>....</rootpath>
    </map:generator>
</map:generators>

This can be done without changing the schemas, you only have to declare
your generator as Configurable. You should not use the sitemap namespace
for this configuration.
Or you can do:
<map:match pattern="mypipeline">
  <map:generate type="cvsview">
    <map:parameter name="root" value="..."/>
  </map:generate>
  ...
</map:match>
You get this within the setup() method of your generator.

Is it this you want to achieve?

Carsten

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message