cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerritjan <gerritjankoekk...@mac.com>
Subject Re: Unable to pass inputmodule value as parameter
Date Fri, 15 Oct 2004 18:43:20 GMT
Brian,

That realy helped...
It's working now, where did you find the specification of these 
properties, I seem to have missed them

Thank you very much...

Gerritjan Koekkoek
Op 15-okt-04 om 20:36 heeft Brian Vargas het volgende geschreven:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Gerritjan,
>
>> You both seem to assume i'm expecting a date in the query string
>> like: http://yourhost/.../cdls_artikelen.xml?date=something
>
> I was assuming that based on the response to which I was responding.  
> :-)
>
>> I wanted to use the DateInputModule which is described at:
>> http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html
>>
>> In my cocoon.xconf this module is present en stated as referable by 
>> {date}
>>
>> can you (or anybody else) see where i'm going wrong!
>
> The "date" specified in your cocoon.xconf merely specifies the name of 
> the
> module.  You still have to provide it with the name of the module 
> attribute you
> want to retrieve.  For the current date, you want the "currentDate" 
> property.
>
> So your sitemap will look like this:
>
> <map:match pattern="cdls_artikelen.xml">
> 	<map:generate src="cocoon:/cdls_artikelen_lijst.xml"/>
> 	<map:transform src="style/xsl/artikel_lijst2artikel.xsl">
> 		<map:parameter name="p_datum" value="{date:currentDate}"/>
> 	</map:transform>
> 	<map:serialize type="xml"/>
> </map:match>
>
> Brian
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (MingW32)
> Comment: What is this? http://pgp.ardvaark.net
>
> iD8DBQFBcBjK3YdPnMKx1eMRAushAKDts8TB4S3WniIE2JC7/a9QUTawugCeOMpP
> Aov4/2Mu/p9GL4S/7XIMZB0=
> =dKiL
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>

Mime
View raw message