You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Perry Molendijk <xi...@iinet.net.au> on 2003/05/05 16:39:02 UTC
date input module
BlankI am a little confused as to where and how you can use the date input
module. I would like to use it to pass the current date as a parameter to an
XSL. Can it be used that way and if yes how?
Thanks,
Perry Molendijk
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: date input module
Posted by Perry Molendijk <xi...@iinet.net.au>.
Thanks,
Works a treat.
----- Original Message -----
From: Christian Haul
To: cocoon-users@xml.apache.org
Sent: Monday, May 05, 2003 11:10 PM
Subject: Re: date input module
On 05.May.2003 -- 10:39 PM, Perry Molendijk wrote:
> BlankI am a little confused as to where and how you can use the date input
> module. I would like to use it to pass the current date as a parameter to an
> XSL. Can it be used that way and if yes how?
1) configure it in cocoon.xconf to return a string with a suitable format
2) in sitemap add
<map:parameter name="currdate" value="{mydate:foo}"/>
to your transformation, have your xslt expect this parameter and
use it.
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org
Re: date input module
Posted by Christian Haul <ha...@dvs1.informatik.tu-darmstadt.de>.
On 05.May.2003 -- 10:39 PM, Perry Molendijk wrote:
> BlankI am a little confused as to where and how you can use the date input
> module. I would like to use it to pass the current date as a parameter to an
> XSL. Can it be used that way and if yes how?
1) configure it in cocoon.xconf to return a string with a suitable format
2) in sitemap add
<map:parameter name="currdate" value="{mydate:foo}"/>
to your transformation, have your xslt expect this parameter and
use it.
Chris.
--
C h r i s t i a n H a u l
haul@informatik.tu-darmstadt.de
fingerprint: 99B0 1D9D 7919 644A 4837 7D73 FEF9 6856 335A 9E08
---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org