I've added a new PropertiesFileModule for accessing properties in a
properties file. There is also a sample using
resource://org/apache/cocoon/cocoon.properties .
That should do it.
Cheers, Unico
Arje Cahn wrote:
>
> Tony,
>
> > > I'm trying to display the Cocoon versionnumber in my XSL's.
> >
> > At first I thought there was an InputModule to do this, but
> apparently
> > there isn't. If there were, it would be pretty easy to do,
> it would
> > look something like this:
> >
> > <map:match pattern="">
> > <map:generate src="foo"/>
> > <map:transform src="xsl/bar.xslt">
> > <map:parameter name="version"
> value="{cocoon-constant:VERSION}"/>
> > </map:transform>
> > <map:serialize/>
> > </map:match>
>
> I was thinking about an input module at first as well; but I
> got frustrated by the fact I couldn't get it working with a
> Xalan extension call to the org.apache.cocoon.Constants... So
> that's why I got all messed up %-/
>
> > Perhaps it's time for a new inputmodule?
>
> I suppose an input module would make perfect sense. Great!
> This would be the cocoon-constant input module?
> Another thing that frustrates me is the StatusGenerator which
> is terribly heavy - we could opt for a cocoon-status inputmodule too.
>
> I'll keep you posted.
>
> Arje
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]