cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Upayavira" ...@upaya.co.uk>
Subject Re: Use of a wildcard in a generator
Date Mon, 21 Jul 2003 07:59:34 GMT
On Mon, 21 Jul 2003 08:54:22 +0200, "Lionel Crine" <crine@4dconcept.fr>
said:
> Hi,
> 
> I'd like to use a wildcard in a generator like this :
> is this allowed ?

Correct. Variable elements are not allowed in the type attribute. To
achieve that sort of control, you could use a ParameterSelector. See:
http://cocoon.apache.org/2.1/userdocs/selectors/parameter-selector.html

This would allow you to cater for a variety of different, but hard coded,
generators.

Regards, Upayavira
 
> <map:match pattern="get*">
>     <map:generate type="Generator{1}" /> --> I think this is not allowed.
>     <map:transform type="xslt" src="xsl/{1}.xsl" />
>     <map:serialize type="html" />
> </map:match>
> 
> 
> Lionel
> 
> Lionel CRINE
> Société : 4DConcept
> 22 rue Etienne de Jouy 78353 JOUY EN JOSAS
> Tel : 01.34.58.70.70 Fax : 01.39.58.70.70
> 
> 
> ---------------------------------------------------------------------
> 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