cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arje Cahn" <A...@hippo.nl>
Subject RE: Using Cocoon constants in XSLT
Date Fri, 31 Oct 2003 12:33:35 GMT
That's like... 5219 seconds to late.. :)
But thanks anyway Unico.

Arjé

> -----Original Message-----
> From: Unico Hommes 
> Posted At: vrijdag 31 oktober 2003 12:49
> Posted To: Cocoon User List
> Conversation: Using Cocoon constants in XSLT
> Subject: RE: Using Cocoon constants in XSLT
> 
> 
> 
> 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: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> > 
> > 
> > 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

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


Mime
View raw message